In Visual C++, it’s possible to use #pragma warning (disable: ...). Also I found that in GCC you can override per file compiler flags. How can I do this for “next line”, or with push/pop semantics around areas of code using GCC?
In Visual C++, it’s possible to use #pragma warning (disable: …) . Also I
Share
It appears this can be done. I’m unable to determine the version of GCC that it was added, but it was sometime before June 2010.
Here’s an example: