1From e481c2f990ffa71f205d4b9daf0823e71269a7f3 Mon Sep 17 00:00:00 2001 2From: Erico Nunes <nunes.erico@gmail.com> 3Date: Fri, 12 Aug 2016 23:11:56 +0200 4Subject: [PATCH] fwts: do not use -Werror 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9Warnings come and go with various compiler versions, so using -Werror is 10prone to cause build failures with various compiler versions, especially 11newer versions that introduce new warnings. 12 13Remove use of -Werror. 14 15Signed-off-by: Erico Nunes <nunes.erico@gmail.com> 16[Fabrice: updated for 20.08.00] 17Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 18[Vincent: rebased onto V21.05.00] 19Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> 20--- 21 configure.ac | 2 +- 22 src/Makefile.am | 2 +- 23 src/lib/src/Makefile.am | 2 +- 24 src/utilities/Makefile.am | 2 +- 25 4 files changed, 4 insertions(+), 4 deletions(-) 26 27diff --git a/configure.ac b/configure.ac 28index f40c3678..0ff5025b 100644 29--- a/configure.ac 30+++ b/configure.ac 31@@ -1,5 +1,5 @@ 32 AC_INIT([fwts],[0.1],[fwts-devel@lists.ubuntu.com]) 33- AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) 34+ AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) 35 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 36 AC_CANONICAL_HOST 37 AC_CONFIG_MACRO_DIR([m4]) 38diff --git a/src/Makefile.am b/src/Makefile.am 39index cdabb386..7c2e5730 100644 40--- a/src/Makefile.am 41+++ b/src/Makefile.am 42@@ -12,7 +12,7 @@ AM_CPPFLAGS = \ 43 -I$(top_srcdir)/src/acpica/source/compiler \ 44 -I$(top_srcdir)/efi_runtime \ 45 -pthread `pkg-config --cflags glib-2.0 gio-2.0` \ 46- -Wall -Werror -Wextra \ 47+ -Wall -Wextra \ 48 -Wno-address-of-packed-member \ 49 -Wfloat-equal -Wmissing-declarations \ 50 -Wno-long-long -Wredundant-decls -Wshadow \ 51diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am 52index 55c52b41..50efa97a 100644 53--- a/src/lib/src/Makefile.am 54+++ b/src/lib/src/Makefile.am 55@@ -25,7 +25,7 @@ AM_CPPFLAGS = \ 56 `pkg-config --silence-errors --cflags json-c` \ 57 `pkg-config --cflags glib-2.0 gio-2.0` \ 58 -DDATAROOTDIR=\"$(datarootdir)\" \ 59- -Wall -Werror -Wextra \ 60+ -Wall -Wextra \ 61 -Wno-address-of-packed-member 62 63 pkglib_LTLIBRARIES = libfwts.la 64diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am 65index 1fc0fc02..53614e33 100644 66--- a/src/utilities/Makefile.am 67+++ b/src/utilities/Makefile.am 68@@ -16,7 +16,7 @@ 69 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 70 # 71 72-AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \ 73+AM_CPPFLAGS = -Wall -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \ 74 -I$(srcdir)/../lib/include 75 76 bin_PROGRAMS = kernelscan 77-- 782.30.2 79 80