daandemeyer / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ecbff1
From 4d5e724a78803ed18033f04e7ffec6c8ea3bc922 Mon Sep 17 00:00:00 2001
ecbff1
From: Jan Synacek <jsynacek@redhat.com>
ecbff1
Date: Thu, 7 Sep 2017 14:37:06 +0200
ecbff1
Subject: [PATCH] fix compilation after commit
ecbff1
 382877acc6c029e59e359a076d203ca03b4b9e9e
ecbff1
ecbff1
It turns out that explicit #warning macros work as explicit errors with -Werror.
ecbff1
ecbff1
Related: #1447937
ecbff1
---
ecbff1
 configure.ac | 2 +-
ecbff1
 1 file changed, 1 insertion(+), 1 deletion(-)
ecbff1
ecbff1
diff --git a/configure.ac b/configure.ac
ecbff1
index def9fe5ce..ee147e28e 100644
ecbff1
--- a/configure.ac
ecbff1
+++ b/configure.ac
ecbff1
@@ -188,7 +188,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
ecbff1
         -Wno-missing-field-initializers \
ecbff1
         -Wno-unused-result \
ecbff1
         -Werror \
ecbff1
-        -Wno-error=maybe-uninitialized \
ecbff1
+        -Wno-error=maybe-uninitialized -Wno-error=cpp \
ecbff1
         -Wdate-time \
ecbff1
         -Wnested-externs \
ecbff1
         -ffast-math \