summaryrefslogtreecommitdiff
path: root/debian/patches/pkg-config-directives.diff
blob: ad3782d27b041bc4e08b5576ce831426de0701a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
@@ -195,9 +195,6 @@
         # specified platform. Filter both of them out before the successor
         # reaches the "^-m" filter.
         set(skip_next_cflag ON)
-      elseif(${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])")
         # Don't impose our warnings on others.
       elseif(${cflag} MATCHES "^-m")