How to disable GCC warnings for a few lines of code

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?

9 Answers
9

Leave a Comment