207 # Compiler warnings are treated as errors |
207 # Compiler warnings are treated as errors |
208 WARNINGS_ARE_ERRORS = -Werror |
208 WARNINGS_ARE_ERRORS = -Werror |
209 |
209 |
210 ifeq ($(USE_CLANG), true) |
210 ifeq ($(USE_CLANG), true) |
211 # However we need to clean the code up before we can unrestrictedly enable this option with Clang |
211 # However we need to clean the code up before we can unrestrictedly enable this option with Clang |
212 WARNINGS_ARE_ERRORS += -Wno-unused-value -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses |
212 WARNINGS_ARE_ERRORS += -Wno-logical-op-parentheses -Wno-parentheses-equality -Wno-parentheses |
213 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare |
213 WARNINGS_ARE_ERRORS += -Wno-switch -Wno-tautological-constant-out-of-range-compare -Wno-tautological-compare |
214 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess |
214 WARNINGS_ARE_ERRORS += -Wno-delete-non-virtual-dtor -Wno-deprecated -Wno-format -Wno-dynamic-class-memaccess |
215 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body |
215 WARNINGS_ARE_ERRORS += -Wno-return-type -Wno-empty-body |
216 endif |
216 endif |
217 |
217 |