diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.ubsan | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/Makefile.ubsan b/scripts/Makefile.ubsan index 8ab68679cfb5..77ce538268b5 100644 --- a/scripts/Makefile.ubsan +++ b/scripts/Makefile.ubsan | |||
| @@ -14,4 +14,8 @@ ifdef CONFIG_UBSAN | |||
| 14 | ifdef CONFIG_UBSAN_ALIGNMENT | 14 | ifdef CONFIG_UBSAN_ALIGNMENT |
| 15 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=alignment) | 15 | CFLAGS_UBSAN += $(call cc-option, -fsanitize=alignment) |
| 16 | endif | 16 | endif |
| 17 | |||
| 18 | # -fsanitize=* options makes GCC less smart than usual and | ||
| 19 | # increase number of 'maybe-uninitialized false-positives | ||
| 20 | CFLAGS_UBSAN += $(call cc-option, -Wno-maybe-uninitialized) | ||
| 17 | endif | 21 | endif |
