|
@@ -683,6 +683,9 @@ KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks)
|
|
|
# disable stringop warnings in gcc 8+
|
|
|
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
|
|
|
|
|
|
+# Enabled with W=2, disabled by default as noisy
|
|
|
+KBUILD_CFLAGS += $(call cc-disable-warning, maybe-uninitialized)
|
|
|
+
|
|
|
# change __FILE__ to the relative path from the srctree
|
|
|
KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
|
|
|
|