Skip to content

Commit adf560c

Browse files
committed
Merge pull request #630 from basvodde/master
Fixed the no-old-style-casts
2 parents 1028764 + 19e0de7 commit adf560c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/MakefileWorker.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ ifeq ($(COMPILER_NAME),$(CLANG_STR))
188188
# -Wno-padded -> I sort-of like this warning but if there is a bool at the end of the class, it seems impossible to remove it! (except by making padding explicit)
189189
# -Wno-global-constructors Wno-exit-time-destructors -> Great warnings, but in CppUTest it is impossible to avoid as the automatic test registration depends on the global ctor and dtor
190190
# -Wno-weak-vtables -> The TEST_GROUP macro declares a class and will automatically inline its methods. Thats ok as they are only in one translation unit. Unfortunately, the warning can't detect that, so it must be disabled.
191-
CPPUTEST_CXX_WARNINGFLAGS += -Weverything -Wno-disabled-macro-expansion -Wno-padded -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables
191+
# -Wno-old-style-casts -> We only use old style casts by decision
192+
CPPUTEST_CXX_WARNINGFLAGS += -Weverything -Wno-disabled-macro-expansion -Wno-padded -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast
192193
CPPUTEST_C_WARNINGFLAGS += -Weverything -Wno-padded
193194
endif
194195

0 commit comments

Comments
 (0)