Boost logo

Boost :

From: Gavin Lambert (boost_at_[hidden])
Date: 2020-09-18 02:48:11


On 18/09/2020 13:07, Edward Diener wrote:
> I tried:
>
> #pragma GCC diagnostic ignore "-Wpedantic"
>
> or
>
> #pragma GCC diagnostic warning "-Wpedantic"
>
> and neither does anything.

-Wpedantic isn't a thing; you need to name the specific individual
warnings that actually occur. These names should be included in the
compiler output.

And as Andrey noted, to do this properly you'd need to push/pop the
warning status to avoid affecting the rest of the translation unit,
including user code.

(This means that at best you can only disable warnings for internal
usage, not for user usage. But that's as it should be. And you should
verify that whatever you do *doesn't* hide the warnings in user code,
otherwise you're just creating a different kind of problem.)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk