Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Oct 11, 2020
1 parent 8922a66 commit bacfc4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion utils/clangversion.mk
Expand Up @@ -145,7 +145,7 @@ include $(UTILS_MAKEFILE_DIR)/stdcver.mk
IUTEST_CXX_NOWARN_FLAGS+=-Wno-missing-field-initializers

# until 3.4
ifeq (1,$(shell expr \( $(GCCMAJOR) \< 3 \) \| \( $(GCCMAJOR) = 3 \& $(GCCMINOR) \< 4 \)))
ifeq (1,$(shell expr \( $(CLANGMAJOR) \< 3 \) \| \( $(CLANGMAJOR) = 3 \& $(CLANGMINOR) \< 4 \)))
IUTEST_CXX_NOWARN_FLAGS+=-Wno-gnu
endif

Expand Down Expand Up @@ -186,11 +186,13 @@ else
IUTEST_CXX_NOWARN_FLAGS+=-Wno-c99-extensions \
-Wno-variadic-macros \
-Wno-c++11-long-long \
-Wno-long-long \
-Wno-disabled-macro-expansion \
-Wno-suggest-override

endif

IUTEST_CXX_STRICT_FLAGS+=-Wmissing-noreturn
IUTEST_CXX_STRICT_FLAGS+=-Weverything

IUTEST_CXX_NOWARN_FLAGS+= \
Expand Down
3 changes: 2 additions & 1 deletion utils/gccversion.mk
Expand Up @@ -151,7 +151,8 @@ endif

# 4.0 later
ifeq (1,$(shell expr \( $(GCCMAJOR) \> 3 \) ))
IUTEST_CXX_STRICT_FLAGS+=-Wunreachable-code -Wdouble-promotion
IUTEST_CXX_STRICT_FLAGS+=-Wunreachable-code -Wdouble-promotion \
-Wmissing-noreturn
endif

# c++11 later
Expand Down
2 changes: 1 addition & 1 deletion utils/warning.mk
@@ -1,4 +1,4 @@
IUTEST_CXX_STRICT_FLAGS+= \
-Wformat=2 -Wcast-qual -Wcast-align \
-Wwrite-strings -Wpointer-arith -Wundef -Wunused-macros \
-Wmissing-noreturn -Wswitch-enum
-Wswitch-enum

0 comments on commit bacfc4b

Please sign in to comment.