I use GCC 4.5.1 and get warnings like:
warning: expected [error|warning|ignored] after '#pragma GCC diagnostic'
The reason is "#pragma GCC diagnostic push", which doesn't exist for GCC before version 4.6.
I can't change the code (it is not my) and the GCC version too. How can I disable these warnings? Some GCC flags may be?
P.S.: I saw Why "pragma GCC diagnostic push" pop warning in GCC/C++?, but there isn't answer to my question.