2021-05-28 16:02:17 +02:00
|
|
|
From e481c2f990ffa71f205d4b9daf0823e71269a7f3 Mon Sep 17 00:00:00 2001
|
2016-10-04 16:52:22 +02:00
|
|
|
From: Erico Nunes <nunes.erico@gmail.com>
|
|
|
|
Date: Fri, 12 Aug 2016 23:11:56 +0200
|
|
|
|
Subject: [PATCH] fwts: do not use -Werror
|
2021-05-28 16:02:17 +02:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2016-10-04 16:52:22 +02:00
|
|
|
|
|
|
|
Warnings come and go with various compiler versions, so using -Werror is
|
|
|
|
prone to cause build failures with various compiler versions, especially
|
|
|
|
newer versions that introduce new warnings.
|
|
|
|
|
|
|
|
Remove use of -Werror.
|
|
|
|
|
|
|
|
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
|
2020-09-07 23:32:46 +02:00
|
|
|
[Fabrice: updated for 20.08.00]
|
2019-09-29 09:44:21 +02:00
|
|
|
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
2021-05-28 16:02:17 +02:00
|
|
|
[Vincent: rebased onto V21.05.00]
|
|
|
|
Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
|
2016-10-04 16:52:22 +02:00
|
|
|
---
|
|
|
|
configure.ac | 2 +-
|
|
|
|
src/Makefile.am | 2 +-
|
|
|
|
src/lib/src/Makefile.am | 2 +-
|
|
|
|
src/utilities/Makefile.am | 2 +-
|
|
|
|
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
2021-05-28 16:02:17 +02:00
|
|
|
index f40c3678..0ff5025b 100644
|
2016-10-04 16:52:22 +02:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
AC_INIT([fwts],[0.1],[fwts-devel@lists.ubuntu.com])
|
|
|
|
- AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
|
|
|
|
+ AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
|
|
|
|
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
|
|
|
AC_CANONICAL_HOST
|
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
2021-05-28 16:02:17 +02:00
|
|
|
index cdabb386..7c2e5730 100644
|
2016-10-04 16:52:22 +02:00
|
|
|
--- a/src/Makefile.am
|
|
|
|
+++ b/src/Makefile.am
|
2021-05-28 16:02:17 +02:00
|
|
|
@@ -12,7 +12,7 @@ AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src/acpica/source/compiler \
|
|
|
|
-I$(top_srcdir)/efi_runtime \
|
2016-10-04 16:52:22 +02:00
|
|
|
-pthread `pkg-config --cflags glib-2.0 gio-2.0` \
|
2019-09-29 09:44:21 +02:00
|
|
|
- -Wall -Werror -Wextra \
|
|
|
|
+ -Wall -Wextra \
|
2020-09-07 23:32:46 +02:00
|
|
|
-Wno-address-of-packed-member \
|
|
|
|
-Wfloat-equal -Wmissing-declarations \
|
|
|
|
-Wno-long-long -Wredundant-decls -Wshadow \
|
2016-10-04 16:52:22 +02:00
|
|
|
diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am
|
2021-05-28 16:02:17 +02:00
|
|
|
index 55c52b41..50efa97a 100644
|
2016-10-04 16:52:22 +02:00
|
|
|
--- a/src/lib/src/Makefile.am
|
|
|
|
+++ b/src/lib/src/Makefile.am
|
2021-05-28 16:02:17 +02:00
|
|
|
@@ -25,7 +25,7 @@ AM_CPPFLAGS = \
|
2016-10-04 16:52:22 +02:00
|
|
|
`pkg-config --silence-errors --cflags json-c` \
|
|
|
|
`pkg-config --cflags glib-2.0 gio-2.0` \
|
|
|
|
-DDATAROOTDIR=\"$(datarootdir)\" \
|
2019-09-29 09:44:21 +02:00
|
|
|
- -Wall -Werror -Wextra \
|
|
|
|
+ -Wall -Wextra \
|
|
|
|
-Wno-address-of-packed-member
|
2016-10-04 16:52:22 +02:00
|
|
|
|
|
|
|
pkglib_LTLIBRARIES = libfwts.la
|
|
|
|
diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am
|
2021-05-28 16:02:17 +02:00
|
|
|
index 1fc0fc02..53614e33 100644
|
2016-10-04 16:52:22 +02:00
|
|
|
--- a/src/utilities/Makefile.am
|
|
|
|
+++ b/src/utilities/Makefile.am
|
2018-09-27 00:39:14 +02:00
|
|
|
@@ -16,7 +16,7 @@
|
|
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
|
2021-05-28 16:02:17 +02:00
|
|
|
-AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
|
|
|
|
+AM_CPPFLAGS = -Wall -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
|
|
|
|
-I$(srcdir)/../lib/include
|
2016-10-04 16:52:22 +02:00
|
|
|
|
2021-05-28 16:02:17 +02:00
|
|
|
bin_PROGRAMS = kernelscan
|
2016-10-04 16:52:22 +02:00
|
|
|
--
|
2021-05-28 16:02:17 +02:00
|
|
|
2.30.2
|
2016-10-04 16:52:22 +02:00
|
|
|
|