1From feb05271b484b158c14611839f968109e9cf3082 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 ca2f54e2..ed584abf 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 3bb35e5c..e9fe92fe 100644 40--- a/src/Makefile.am 41+++ b/src/Makefile.am 42@@ -13,7 +13,7 @@ AM_CPPFLAGS = \ 43 -I$(top_srcdir)/efi_runtime \ 44 -I$(top_srcdir)/smccc_test \ 45 -pthread \ 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 d5d53dd7..76c48d4d 100644 53--- a/src/lib/src/Makefile.am 54+++ b/src/lib/src/Makefile.am 55@@ -22,7 +22,7 @@ AM_CPPFLAGS = \ 56 -I$(top_srcdir)/src/acpica/source/include \ 57 -I$(top_srcdir)/src/acpica/source/compiler \ 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 de38f070..785975ff 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.36.1 79 80