Add cflags Wno-error
This commit is contained in:
parent
07a3149396
commit
d6e7630bf2
2 changed files with 17 additions and 0 deletions
16
debian/patches/pve/0013-add-cflags.patch
vendored
Normal file
16
debian/patches/pve/0013-add-cflags.patch
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
diff --git a/Makefile.orig b/Makefile
|
||||
index cc23c329111e..28c526aac06c 100644
|
||||
--- a/Makefile.orig
|
||||
+++ b/Makefile
|
||||
@@ -951,6 +951,11 @@ include scripts/Makefile.kasan
|
||||
include scripts/Makefile.extrawarn
|
||||
include scripts/Makefile.ubsan
|
||||
|
||||
+KBUILD_CFLAGS += -Wno-format-truncation
|
||||
+KBUILD_CFLAGS += -Wno-array-bounds
|
||||
+KBUILD_CFLAGS += -Wno-stringop-overflow
|
||||
+KBUILD_CLFAGS += -Wno-compare-distinct-pointer-types
|
||||
+
|
||||
# Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
|
||||
KBUILD_CPPFLAGS += $(KCPPFLAGS)
|
||||
KBUILD_AFLAGS += $(KAFLAGS)
|
1
debian/patches/series.linux
vendored
1
debian/patches/series.linux
vendored
|
@ -10,3 +10,4 @@ pve/0009-NFSv4-pnfs-Fix-a-use-after-free-bug-in-open.patch
|
|||
pve/0010-scsi-Revert-scsi-qla2xxx-Fix-disk-failure-to-redisco.patch
|
||||
pve/0011-ext4-recover-csum-seed-of-tmp_inode-after-migrating-.patch
|
||||
pve/0012-drm-i915-gt-Serialize-TLB-invalidates-with-GT-resets.patch
|
||||
pve/0013-add-cflags.patch
|
||||
|
|
Loading…
Reference in a new issue