]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - scripts/Makefile.ubsan
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[karo-tx-linux.git] / scripts / Makefile.ubsan
index 8ab68679cfb5b65cebd5f05d5d5054812bd4c651..77ce538268b5d7c4ebee9b598d17dadcd4dfd189 100644 (file)
@@ -14,4 +14,8 @@ ifdef CONFIG_UBSAN
 ifdef CONFIG_UBSAN_ALIGNMENT
       CFLAGS_UBSAN += $(call cc-option, -fsanitize=alignment)
 endif
+
+      # -fsanitize=* options makes GCC less smart than usual and
+      # increase number of 'maybe-uninitialized false-positives
+      CFLAGS_UBSAN += $(call cc-option, -Wno-maybe-uninitialized)
 endif