From: Benjamin Barenblat 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")