File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -447,8 +447,7 @@ HOSTRUSTC = rustc
447
447
HOSTPKG_CONFIG = pkg-config
448
448
449
449
KBUILD_USERHOSTCFLAGS := -Wall -Wmissing-prototypes -Wstrict-prototypes \
450
- -O2 -fomit-frame-pointer -std=gnu11 \
451
- -Wdeclaration-after-statement
450
+ -O2 -fomit-frame-pointer -std=gnu11
452
451
KBUILD_USERCFLAGS := $(KBUILD_USERHOSTCFLAGS ) $(USERCFLAGS )
453
452
KBUILD_USERLDFLAGS := $(USERLDFLAGS )
454
453
@@ -1012,9 +1011,6 @@ endif
1012
1011
# arch Makefile may override CC so keep this after arch Makefile is included
1013
1012
NOSTDINC_FLAGS += -nostdinc
1014
1013
1015
- # warn about C99 declaration after statement
1016
- KBUILD_CFLAGS += -Wdeclaration-after-statement
1017
-
1018
1014
# Variable Length Arrays (VLAs) should not be used anywhere in the kernel
1019
1015
KBUILD_CFLAGS += -Wvla
1020
1016
Original file line number Diff line number Diff line change @@ -65,11 +65,9 @@ VDSO_CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
65
65
-fno-strict-aliasing -fno-common \
66
66
-Werror-implicit-function-declaration \
67
67
-Wno-format-security \
68
- -Wdeclaration-after-statement \
69
68
-std=gnu11
70
69
VDSO_CFLAGS += -O2
71
70
# Some useful compiler-dependent flags from top-level Makefile
72
- VDSO_CFLAGS += $(call cc32-option,-Wdeclaration-after-statement,)
73
71
VDSO_CFLAGS += $(call cc32-option,-Wno-pointer-sign)
74
72
VDSO_CFLAGS += -fno-strict-overflow
75
73
VDSO_CFLAGS += $(call cc32-option,-Werror=strict-prototypes)
You can’t perform that action at this time.
0 commit comments