From 74bf7fb08682da342e597b8b4387c30db6984631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 10 Dec 2020 15:22:57 +0100 Subject: [PATCH] debian/patches: Add upstream patch to avoid nbis library warnings These have been checked to be harmless upstream --- ...-parameter-and-array-bounds-warnings.patch | 26 +++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 27 insertions(+) create mode 100644 debian/patches/nbis-Disable-array-parameter-and-array-bounds-warnings.patch diff --git a/debian/patches/nbis-Disable-array-parameter-and-array-bounds-warnings.patch b/debian/patches/nbis-Disable-array-parameter-and-array-bounds-warnings.patch new file mode 100644 index 00000000..8524337e --- /dev/null +++ b/debian/patches/nbis-Disable-array-parameter-and-array-bounds-warnings.patch @@ -0,0 +1,26 @@ +From: Benjamin Berg +Date: Wed, 9 Dec 2020 15:46:23 +0100 +Subject: nbis: Disable array-parameter and array-bounds warnings + +NBIS just does weird things and while the array-parameter warning is +easy to fix, the other is not trivial. So disable these warnings so that +we can still build using newer GCC versions. + +Origin: https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/2d10d86 +--- + libfprint/meson.build | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libfprint/meson.build b/libfprint/meson.build +index 96cfe9b..4d1d30c 100644 +--- a/libfprint/meson.build ++++ b/libfprint/meson.build +@@ -234,6 +234,8 @@ libnbis = static_library('nbis', + '-Wno-error=redundant-decls', + '-Wno-redundant-decls', + '-Wno-discarded-qualifiers', ++ '-Wno-array-bounds', ++ '-Wno-array-parameter', + ]), + install: false) + diff --git a/debian/patches/series b/debian/patches/series index a64d5176..16e6af11 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ +nbis-Disable-array-parameter-and-array-bounds-warnings.patch debian/Tweak-the-udev-rules-creator-for-Debian-usage.patch