From 75d1110c22746bf22c88bbecb01935ae98fc3c03 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sat, 23 Mar 2019 23:29:29 +0300 Subject: symbols: add a comment to suppress warning from code analyzers Signed-off-by: Konstantin Kharlamov --- src/xkbcomp/symbols.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/xkbcomp') diff --git a/src/xkbcomp/symbols.c b/src/xkbcomp/symbols.c index 9b05ec9..f693bae 100644 --- a/src/xkbcomp/symbols.c +++ b/src/xkbcomp/symbols.c @@ -227,6 +227,7 @@ MergeGroups(SymbolsInfo *info, GroupInfo *into, GroupInfo *from, bool clobber, /* First find the type of the merged group. */ if (into->type != from->type) { if (from->type == XKB_ATOM_NONE) { + /* it's empty for consistency with other comparisons */ } else if (into->type == XKB_ATOM_NONE) { 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); if (fromLevel->action.type == ACTION_TYPE_NONE) { + /* it's empty for consistency with other comparisons */ } else if (intoLevel->action.type == ACTION_TYPE_NONE) { intoLevel->action = fromLevel->action; @@ -290,6 +292,7 @@ MergeGroups(SymbolsInfo *info, GroupInfo *into, GroupInfo *from, bool clobber, } if (fromLevel->num_syms == 0) { + /* it's empty for consistency with other comparisons */ } else if (intoLevel->num_syms == 0) { intoLevel->num_syms = fromLevel->num_syms; -- cgit v1.2.1