logrotate: enable selinux support
[buildroot-gz.git] / package / fwts / 0001-build-do-not-use-Werror.patch
blob5246fd62d241ae50619a35b66eeb0b4863c00aa7
1 From db480b9f3e3a5c6c12e9dd04e87c8dff9381b8e7 Mon Sep 17 00:00:00 2001
2 From: Erico Nunes <nunes.erico@gmail.com>
3 Date: Fri, 12 Aug 2016 23:11:56 +0200
4 Subject: [PATCH] fwts: do not use -Werror
6 Warnings come and go with various compiler versions, so using -Werror is
7 prone to cause build failures with various compiler versions, especially
8 newer versions that introduce new warnings.
10 Remove use of -Werror.
12 Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
13 ---
14 configure.ac | 2 +-
15 src/Makefile.am | 2 +-
16 src/lib/src/Makefile.am | 2 +-
17 src/utilities/Makefile.am | 2 +-
18 4 files changed, 4 insertions(+), 4 deletions(-)
20 diff --git a/configure.ac b/configure.ac
21 index e3e7512..64034fa 100644
22 --- a/configure.ac
23 +++ b/configure.ac
24 @@ -1,5 +1,5 @@
25 AC_INIT([fwts],[0.1],[fwts-devel@lists.ubuntu.com])
26 - AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
27 + AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
28 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
29 AC_CANONICAL_HOST
30 AC_CONFIG_MACRO_DIR([m4])
31 diff --git a/src/Makefile.am b/src/Makefile.am
32 index bc23e8d..599765d 100644
33 --- a/src/Makefile.am
34 +++ b/src/Makefile.am
35 @@ -14,7 +14,7 @@ AM_CPPFLAGS = \
36 `pkg-config --silence-errors --cflags json` \
37 `pkg-config --silence-errors --cflags json-c` \
38 -pthread `pkg-config --cflags glib-2.0 gio-2.0` \
39 - -Wall -Werror -Wextra
40 + -Wall -Wextra
42 bin_PROGRAMS = fwts
44 diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am
45 index 1b8fd74..163c9ae 100644
46 --- a/src/lib/src/Makefile.am
47 +++ b/src/lib/src/Makefile.am
48 @@ -6,7 +6,7 @@ AM_CPPFLAGS = \
49 `pkg-config --silence-errors --cflags json-c` \
50 `pkg-config --cflags glib-2.0 gio-2.0` \
51 -DDATAROOTDIR=\"$(datarootdir)\" \
52 - -Wall -Werror -Wextra
53 + -Wall -Wextra
55 pkglib_LTLIBRARIES = libfwts.la
57 diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am
58 index 9a47980..14997df 100644
59 --- a/src/utilities/Makefile.am
60 +++ b/src/utilities/Makefile.am
61 @@ -1,4 +1,4 @@
62 -AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
63 +AM_CPPFLAGS = -Wall -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
64 `pkg-config --silence-errors --cflags json` \
65 `pkg-config --silence-errors --cflags json-c`
67 --
68 2.7.4