Hi! On Tue, 2019-09-10 at 16:57:05 +0200, Paul Dreik wrote: > Package: dpkg > Version: 1.19.7 > Severity: normal
> I use dpkg-buildflags in my continuous integration script, to make > sure my software (rdfind, available in debian) will build ok when the official > rdfind package is built. I count the warnings during build, and error out if > it is nonzero. This works fine in buster. > > This will however fail with g++-9, which warns when using > -Werror=implicit-function-declaration > on C++ programs. > > To reproduce: > export DEB_BUILD_MAINT_OPTIONS="qa=+all" > touch empty.cpp > g++-9 $(dpkg-buildflags --get CXXFLAGS) -c empty.cpp > # outputs a warning from g++ > > Reading the manpage for dpkg-buildflags, it says CXXFLAGS is the same as > CFLAGS. I think > that is unfortunate. I would expect CXXFLAGS to be C++ specific. Indeed, thanks for the report! I've fixed this now locally, and will be included in my next push. Thanks, Guillem