diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-05-28 09:47:22 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-29 09:04:47 -0400 |
commit | 59f7b5847b0c279d416977d07b7d23aaa7fdc1be (patch) | |
tree | d8fa57c807777a5b1395f9fa26759476de188d8d /Makefile | |
parent | ac5db1fc89bf84d7479761e0de855e6376fdab1e (diff) |
kbuild: $(CHECK) doesnt need NOSTDINC_FLAGS twice
Currently, $(CHECK) receives NOSTDINC_FLAGS twice:
* first directly in the main Makefile via CHECKFLAGS,
* then indirectly in scripts/Makefile.build via c_flags.
Since once is enough, leave the occurence via c_flags and
remove the one via CHECKFLAGS.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -805,7 +805,6 @@ endif | |||
805 | 805 | ||
806 | # arch Makefile may override CC so keep this after arch Makefile is included | 806 | # arch Makefile may override CC so keep this after arch Makefile is included |
807 | NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include) | 807 | NOSTDINC_FLAGS += -nostdinc -isystem $(call shell-cached,$(CC) -print-file-name=include) |
808 | CHECKFLAGS += $(NOSTDINC_FLAGS) | ||
809 | 808 | ||
810 | # warn about C99 declaration after statement | 809 | # warn about C99 declaration after statement |
811 | KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) | 810 | KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) |