修订版 | 5d878dc80cce86b4e15f04602b40197f7cf9d78a (tree) |
---|---|
时间 | 2018-01-21 20:48:00 |
作者 | Waldemar Brodkorb <wbx@ucli...> |
Commiter | Waldemar Brodkorb |
supress some gcc warnings
@@ -562,6 +562,8 @@ endif | ||
562 | 562 | WARNING_FLAGS = -Wstrict-prototypes -Wstrict-aliasing |
563 | 563 | ifeq ($(EXTRA_WARNINGS),y) |
564 | 564 | WARNING_FLAGS += \ |
565 | + -Wno-nonnull-compare \ | |
566 | + -Wnodeclaration-after-statement \ | |
565 | 567 | -Wformat=2 \ |
566 | 568 | -Wmissing-noreturn \ |
567 | 569 | -Wmissing-format-attribute \ |
@@ -571,7 +573,6 @@ WARNING_FLAGS += \ | ||
571 | 573 | -Wnonnull \ |
572 | 574 | -Wold-style-declaration \ |
573 | 575 | -Wold-style-definition \ |
574 | - -Wdeclaration-after-statement \ | |
575 | 576 | -Wshadow \ |
576 | 577 | -Wundef |
577 | 578 | endif |