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

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