I don't know how to reply to an old archived email on the list which I no
longer have in my email client. For reference, this is a followup to the
First of all, it seems that I also get the warnings using GCC 4.7.2, as
opposed to what I claimed before. I think the confusion was caused by me
not understanding CMake well enough.
Due to the gigantic amount of warnings from Blitz++, I upgraded to GCC
4.7.2 on my office computer and introduced the following type of code which
enables me to see warnings for my own code (using g++ -Wall -Wextra), while
suppressing the warnings from the Blitz++ header:
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wextra"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#pragma GCC diagnostic pop
Now I can see warnings related to my own code, without them being lost
among the Blitz++ warnings. The push/pop pragma keywords were not supported
in GCC 4.4.6 so a compiler upgrade was necessary.