allow comments to supress implicit fallthrough warnings
This commit is contained in:
parent
bd8991c2f6
commit
e4537cb37e
5
Makefile
5
Makefile
|
@ -491,6 +491,11 @@ ifeq ($(call cc_ver_ge,4,6),1)
|
|||
COMMON_WARNFLAGS += -Wno-unused-but-set-variable
|
||||
endif
|
||||
|
||||
# Implicit fallthrough warnings suppressed by comment
|
||||
ifeq ($(call cc_ver_ge,7,1),1)
|
||||
COMMON_WARNFLAGS += -Wimplicit-fallthrough=3
|
||||
endif
|
||||
|
||||
# deal with chaging warning flags for different platforms
|
||||
ifeq ($(HOST),OpenBSD)
|
||||
# OpenBSD headers are not compatible with redundant declaration warning
|
||||
|
|
|
@ -505,7 +505,7 @@ static inline struct box *box_move_xy(struct box *b, enum box_walk_dir dir,
|
|||
rb = b;
|
||||
break;
|
||||
}
|
||||
/* Fall through */
|
||||
/* fall through */
|
||||
|
||||
case BOX_WALK_NEXT_SIBLING:
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue