diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2012-01-23 22:10:14 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-01-26 05:07:26 -0500 |
commit | f858ee8b8cd8c216ddbeefae6e047ce90cae9cca (patch) | |
tree | a3f13951a5b54efeea45437a4a0a99fd64006245 /scripts/Makefile.build | |
parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) |
kbuild: disable -Wmissing-field-initializers for W=1
-Wmissing-field-initializers is too noisy to be useful on W=1. Let's
move it to W=2.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/Makefile.build')
-rw-r--r-- | scripts/Makefile.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d2b366c16b64..ff1720d28d0c 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -69,6 +69,7 @@ warning-1 += -Wmissing-prototypes | |||
69 | warning-1 += -Wold-style-definition | 69 | warning-1 += -Wold-style-definition |
70 | warning-1 += $(call cc-option, -Wmissing-include-dirs) | 70 | warning-1 += $(call cc-option, -Wmissing-include-dirs) |
71 | warning-1 += $(call cc-option, -Wunused-but-set-variable) | 71 | warning-1 += $(call cc-option, -Wunused-but-set-variable) |
72 | warning-1 += $(call cc-disable-warning, missing-field-initializers) | ||
72 | 73 | ||
73 | warning-2 := -Waggregate-return | 74 | warning-2 := -Waggregate-return |
74 | warning-2 += -Wcast-align | 75 | warning-2 += -Wcast-align |
@@ -76,6 +77,7 @@ warning-2 += -Wdisabled-optimization | |||
76 | warning-2 += -Wnested-externs | 77 | warning-2 += -Wnested-externs |
77 | warning-2 += -Wshadow | 78 | warning-2 += -Wshadow |
78 | warning-2 += $(call cc-option, -Wlogical-op) | 79 | warning-2 += $(call cc-option, -Wlogical-op) |
80 | warning-2 += $(call cc-option, -Wmissing-field-initializers) | ||
79 | 81 | ||
80 | warning-3 := -Wbad-function-cast | 82 | warning-3 := -Wbad-function-cast |
81 | warning-3 += -Wcast-qual | 83 | warning-3 += -Wcast-qual |