From 86409d71c641513ca43b12d135cc03702d347085 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 11 Jun 2021 11:36:45 +0200 Subject: autoconf: Don't set -Werror globally, but for selected targets only. --- configure.ac | 2 +- src/Makefile.am | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6e03318..1c42a98 100644 --- a/configure.ac +++ b/configure.ac @@ -98,7 +98,7 @@ AM_GLIB_GNU_GETTEXT # Flags ########################### -AC_SUBST(AM_CFLAGS, "-Wall -Werror") +AC_SUBST(AM_CFLAGS, "-Wall") AC_SUBST(AM_CPPFLAGS, $AM_CFLAGS) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 6270105..d09828a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -22,6 +22,8 @@ libgenerated_la_SOURCES = \ remote-logon.h \ $(NULL) +# no -Werror here... +# The generation tools might lag behind the GNU C compiler's sensitivity libgenerated_la_CFLAGS = \ $(SERVICE_CFLAGS) \ $(NULL) @@ -57,6 +59,7 @@ libservers_la_SOURCES = \ libservers_la_CFLAGS = \ -DUCCS_QUERY_TOOL="\"remote-logon-config-agent\"" \ + -Werror \ $(SERVICE_CFLAGS) \ $(COVERAGE_CFLAGS) \ $(NULL) @@ -71,6 +74,7 @@ libservers_la_LDFLAGS = \ remote_logon_service_CFLAGS = \ -DDEFAULT_CONFIG_FILE="\"$(sysconfdir)/remote-logon-service.conf\"" \ + -Werror \ $(SERVICE_CFLAGS) \ $(COVERAGE_CFLAGS) \ $(NULL) -- cgit v1.2.3