I am including a file from a third-party library that raises an error that can be downgraded to a warning with -fpermissive. But because I do not want to \"poll
-fpermissive
It's maybe a bit late for this, but one of these ought to do what you wanted:
#pragma GCC diagnostic ignored "-fpermissive"
or
#pragma GCC diagnostic ignored "-pedantic"
"ignored" is how you squelch a diagnostic entirely, and the inverse of -fpermissive is -pedantic, for historical reasons.
-pedantic