diff --git a/makefile b/makefile index 924032b0ff9..0908e743438 100644 --- a/makefile +++ b/makefile @@ -518,6 +518,14 @@ COBJFLAGS += \ CPPONLYFLAGS += \ -Woverloaded-virtual +ifneq (,$(findstring clang,$(CC))) +CCOMFLAGS += \ + -Wno-cast-align \ + -Wno-tautological-compare \ + -Wno-constant-logical-operand \ + -Wno-format-security +endif + #------------------------------------------------- # include paths