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 @@ -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