symbols: add a comment to suppress warning from code analyzers
Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>master
parent
83cfbf8840
commit
75d1110c22
|
@ -227,6 +227,7 @@ MergeGroups(SymbolsInfo *info, GroupInfo *into, GroupInfo *from, bool clobber,
|
||||||
/* First find the type of the merged group. */
|
/* First find the type of the merged group. */
|
||||||
if (into->type != from->type) {
|
if (into->type != from->type) {
|
||||||
if (from->type == XKB_ATOM_NONE) {
|
if (from->type == XKB_ATOM_NONE) {
|
||||||
|
/* it's empty for consistency with other comparisons */
|
||||||
}
|
}
|
||||||
else if (into->type == XKB_ATOM_NONE) {
|
else if (into->type == XKB_ATOM_NONE) {
|
||||||
into->type = from->type;
|
into->type = from->type;
|
||||||
|
@ -269,6 +270,7 @@ MergeGroups(SymbolsInfo *info, GroupInfo *into, GroupInfo *from, bool clobber,
|
||||||
struct xkb_level *fromLevel = &darray_item(from->levels, i);
|
struct xkb_level *fromLevel = &darray_item(from->levels, i);
|
||||||
|
|
||||||
if (fromLevel->action.type == ACTION_TYPE_NONE) {
|
if (fromLevel->action.type == ACTION_TYPE_NONE) {
|
||||||
|
/* it's empty for consistency with other comparisons */
|
||||||
}
|
}
|
||||||
else if (intoLevel->action.type == ACTION_TYPE_NONE) {
|
else if (intoLevel->action.type == ACTION_TYPE_NONE) {
|
||||||
intoLevel->action = fromLevel->action;
|
intoLevel->action = fromLevel->action;
|
||||||
|
@ -290,6 +292,7 @@ MergeGroups(SymbolsInfo *info, GroupInfo *into, GroupInfo *from, bool clobber,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromLevel->num_syms == 0) {
|
if (fromLevel->num_syms == 0) {
|
||||||
|
/* it's empty for consistency with other comparisons */
|
||||||
}
|
}
|
||||||
else if (intoLevel->num_syms == 0) {
|
else if (intoLevel->num_syms == 0) {
|
||||||
intoLevel->num_syms = fromLevel->num_syms;
|
intoLevel->num_syms = fromLevel->num_syms;
|
||||||
|
|
Loading…
Reference in New Issue