Messages in this thread Patch in this message | | | Date | Sun, 10 Mar 2019 16:35:35 +0300 | From | Alexey Dobriyan <> | Subject | [PATCH] Drop -Wdeclaration-after-statement |
| |
Newly added static_assert() is formally a declaration, which will give a warning if used in the middle of the function.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> ---
Makefile | 3 --- 1 file changed, 3 deletions(-)
--- a/Makefile +++ b/Makefile @@ -792,9 +792,6 @@ endif # arch Makefile may override CC so keep this after arch Makefile is included NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) -# warn about C99 declaration after statement -KBUILD_CFLAGS += -Wdeclaration-after-statement - # Variable Length Arrays (VLAs) should not be used anywhere in the kernel KBUILD_CFLAGS += $(call cc-option,-Wvla)
| |