blob: 726d6aecc99bf81b9a8fad361d1d80e6972316cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
From: Benjamin Barenblat <bbaren@google.com>
Subject: Do not propagate -Wno-... flags into pkg-config files
Forwarded: not-needed
Lintian doesn't like any -W flags in pkg-config files, even if those flags
disable warnings.
--- a/CMake/AbseilHelpers.cmake
+++ b/CMake/AbseilHelpers.cmake
@@ -187,10 +187,7 @@
endif()
endforeach()
foreach(cflag ${ABSL_CC_LIB_COPTS})
- if(${cflag} MATCHES "^(-Wno|/wd)")
- # These flags are needed to suppress warnings that might fire in our headers.
- set(PC_CFLAGS "${PC_CFLAGS} ${cflag}")
- elseif(${cflag} MATCHES "^(-W|/w[1234eo])")
+ if(${cflag} MATCHES "^(-W|/w[1234eo])")
# Don't impose our warnings on others.
elseif(${cflag} MATCHES "^-m")
# Don't impose CPU instruction requirements on others, as
|