Blame SOURCES/0002-build-Do-not-enable-Wredundant-decls-twice.patch

764884
From 2e12d7ebf4a578d4b21b4432debf532503907aa5 Mon Sep 17 00:00:00 2001
764884
From: Jason Gunthorpe <jgg@mellanox.com>
764884
Date: Tue, 22 Oct 2019 11:04:29 -0300
764884
Subject: [PATCH rdma-core 02/13] build: Do not enable -Wredundant-decls twice
764884
764884
[ Upstream commit 72918e16727c626717d327cc422654f2d211090d ]
764884
764884
It is already enabled later in cmake using a work around test for old
764884
distros. Enabling it here breaks the work around.
764884
764884
Fixes: 819be5fb5469 ("build: Enable more warnings")
764884
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
764884
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
764884
---
764884
 CMakeLists.txt | 1 -
764884
 1 file changed, 1 deletion(-)
764884
764884
diff --git a/CMakeLists.txt b/CMakeLists.txt
764884
index fc17ef36..59ffdf83 100644
764884
--- a/CMakeLists.txt
764884
+++ b/CMakeLists.txt
764884
@@ -216,7 +216,6 @@ RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WWRITE_STRINGS "-Wwrite-strings")
764884
 RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WFORMAT_2 "-Wformat=2")
764884
 RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WCAST_FUNCTION "-Wcast-function-type")
764884
 RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WFORMAT_NONLITERAL "-Wformat-nonliteral")
764884
-RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WREDUNDANT_DECLS "-Wredundant-decls")
764884
 RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WDATE_TIME "-Wdate-time")
764884
 RDMA_AddOptCFlag(CMAKE_C_FLAGS HAVE_C_WNESTED_EXTERNS "-Wnested-externs")
764884
 
764884
-- 
764884
2.20.1
764884