anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0508-fix-compilation-after-commit-382877acc6c029e59e359a0.patch

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