diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 17:08:51 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 17:08:51 +0000 |
commit | c562bb74877f68edebfa31515c17d63fc4769a60 (patch) | |
tree | fc053ce5905670ef6f36497374bee20234d16f15 /Makefile.flags | |
parent | fe7a9f12771109af593a186471e100fd7fd78901 (diff) | |
download | busybox-w32-c562bb74877f68edebfa31515c17d63fc4769a60.tar.gz busybox-w32-c562bb74877f68edebfa31515c17d63fc4769a60.tar.bz2 busybox-w32-c562bb74877f68edebfa31515c17d63fc4769a60.zip |
disable -Wold-style-definition for gcc 3.x
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags index b39dfbb3c..9de52d89a 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -20,16 +20,22 @@ CFLAGS += $(call cc-option,-Wall -Wshadow,) | |||
20 | ifeq ($(CONFIG_WERROR),y) | 20 | ifeq ($(CONFIG_WERROR),y) |
21 | CFLAGS += $(call cc-option,-Werror,) | 21 | CFLAGS += $(call cc-option,-Werror,) |
22 | endif | 22 | endif |
23 | CFLAGS += $(call cc-option,-Wundef -Wold-style-definition -Wstrict-prototypes,) | 23 | CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) |
24 | # If you want to add "-Wmissing-prototypes -Wmissing-declarations" above | 24 | # If you want to add "-Wmissing-prototypes -Wmissing-declarations" above |
25 | # (or anything else for that matter) make sure that it is still possible | 25 | # (or anything else for that matter) make sure that it is still possible |
26 | # to build bbox without warnings. Current offender: find.c:alloc_action(). | 26 | # to build bbox without warnings. Current offender: find.c:alloc_action(). |
27 | # Looks more like gcc bug: gcc will warn on it with or without prototype. | 27 | # Looks more like gcc bug: gcc will warn on it with or without prototype. |
28 | # But still, warning-free compile is a must, or else we will drown | 28 | # But still, warning-free compile is a must, or else we will drown |
29 | # in warnings pretty soon. | 29 | # in warnings pretty soon. |
30 | |||
31 | # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() | ||
32 | CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) | ||
33 | |||
34 | # gcc emits bogus "no prev proto" warning on find.c:alloc_action() | ||
30 | ifneq ($(CONFIG_WERROR),y) | 35 | ifneq ($(CONFIG_WERROR),y) |
31 | CFLAGS += $(call cc-option,-Wmissing-prototypes -Wmissing-declarations,) | 36 | CFLAGS += $(call cc-option,-Wmissing-prototypes -Wmissing-declarations,) |
32 | endif | 37 | endif |
38 | |||
33 | CFLAGS += $(call cc-option,-Os -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections,) | 39 | CFLAGS += $(call cc-option,-Os -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunction-sections -fdata-sections,) |
34 | # -fno-guess-branch-probability: prohibit pseudo-random guessing | 40 | # -fno-guess-branch-probability: prohibit pseudo-random guessing |
35 | # of branch probabilities (hopefully makes bloatcheck more stable): | 41 | # of branch probabilities (hopefully makes bloatcheck more stable): |