1
0

warnings-gcc.mk 1.2 KB

123456789101112131415161718192021222324252627
  1. CXXFLAGS_WARNINGS += -Wcast-align -Wcast-qual -Wfloat-conversion -Wframe-larger-than=16000 -Winit-self -Wlogical-op -Wmissing-declarations -Wpointer-arith -Wstrict-aliasing -Wsuggest-override -Wundef
  2. CFLAGS_WARNINGS += -Wcast-align -Wcast-qual -Wfloat-conversion -Wlogical-op -Wundef
  3. CXXFLAGS_WARNINGS += -Wno-psabi
  4. ifeq ($(MODERN),1)
  5. LDFLAGS += -fuse-ld=gold
  6. CXXFLAGS_WARNINGS +=
  7. CFLAGS_WARNINGS += -Wframe-larger-than=4000
  8. #CXXFLAGS_WARNINGS += -Wstrict-aliasing -Wpointer-arith -Winit-self -Wshadow -Wswitch-enum -Wstrict-prototypes
  9. LDFLAGS_WARNINGS += -Wl,-no-undefined -Wl,--detect-odr-violations
  10. # re-renable after 1.29 branch
  11. #CXXFLAGS_WARNINGS += -Wdouble-promotion
  12. #CFLAGS_WARNINGS += -Wdouble-promotion
  13. endif
  14. CFLAGS_SILENT += -Wno-cast-qual
  15. CFLAGS_SILENT += -Wno-empty-body
  16. CFLAGS_SILENT += -Wno-float-conversion
  17. CFLAGS_SILENT += -Wno-implicit-fallthrough
  18. CFLAGS_SILENT += -Wno-old-style-declaration
  19. CFLAGS_SILENT += -Wno-sign-compare
  20. CFLAGS_SILENT += -Wno-type-limits
  21. CFLAGS_SILENT += -Wno-unused-but-set-variable
  22. CFLAGS_SILENT += -Wno-unused-function
  23. CFLAGS_SILENT += -Wno-unused-parameter