diff options
Diffstat (limited to 'tools/scripts')
| -rw-r--r-- | tools/scripts/Makefile.include | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include index 19edc1a7a232..621578aa12d6 100644 --- a/tools/scripts/Makefile.include +++ b/tools/scripts/Makefile.include | |||
| @@ -32,7 +32,6 @@ EXTRA_WARNINGS += -Wold-style-definition | |||
| 32 | EXTRA_WARNINGS += -Wpacked | 32 | EXTRA_WARNINGS += -Wpacked |
| 33 | EXTRA_WARNINGS += -Wredundant-decls | 33 | EXTRA_WARNINGS += -Wredundant-decls |
| 34 | EXTRA_WARNINGS += -Wshadow | 34 | EXTRA_WARNINGS += -Wshadow |
| 35 | EXTRA_WARNINGS += -Wstrict-aliasing=3 | ||
| 36 | EXTRA_WARNINGS += -Wstrict-prototypes | 35 | EXTRA_WARNINGS += -Wstrict-prototypes |
| 37 | EXTRA_WARNINGS += -Wswitch-default | 36 | EXTRA_WARNINGS += -Wswitch-default |
| 38 | EXTRA_WARNINGS += -Wswitch-enum | 37 | EXTRA_WARNINGS += -Wswitch-enum |
| @@ -40,6 +39,10 @@ EXTRA_WARNINGS += -Wundef | |||
| 40 | EXTRA_WARNINGS += -Wwrite-strings | 39 | EXTRA_WARNINGS += -Wwrite-strings |
| 41 | EXTRA_WARNINGS += -Wformat | 40 | EXTRA_WARNINGS += -Wformat |
| 42 | 41 | ||
| 42 | ifneq ($(CC), clang) | ||
| 43 | EXTRA_WARNINGS += -Wstrict-aliasing=3 | ||
| 44 | endif | ||
| 45 | |||
| 43 | ifneq ($(findstring $(MAKEFLAGS), w),w) | 46 | ifneq ($(findstring $(MAKEFLAGS), w),w) |
| 44 | PRINT_DIR = --no-print-directory | 47 | PRINT_DIR = --no-print-directory |
| 45 | else | 48 | else |
