On Thu, Apr 20, 2017 at 11:03:38AM +0100, Jonathan Wakely wrote:
> Yet another case where warning suppression in system headers hurts the
> library's ability to give diagnostics. We can't warn about using
> incomplete types in std::unique_ptr because the -Wdelete-incomplete
> warning gets suppressed, and the interaction of #pragma GCC diagnostic
> with -Wsystem-headers is ... interesting. We need a way to enable
> warnings for specific blocks of code, to say "do not suppress warnings
> here, even though it's in a system header".

Can #pragma GCC warning "-Wno-system-headers" do that?

        Jakub

Reply via email to