Disable type-limits warnings for g++ < 4.8

This commit is contained in:
Christoph Hertzberg 2018-09-12 14:40:39 +02:00
parent ba2c8efdcf
commit 7e9c9fbb2d

View File

@ -52,6 +52,10 @@
#endif
// g++ warns about local variables shadowing member functions, which is too strict
#pragma GCC diagnostic ignored "-Wshadow"
#if __GNUC__ == 4 && __GNUC_MINOR__ < 8
// Until g++-4.7 there are warnings when comparing unsigned int vs 0, even in templated functions:
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
#if __GNUC__>=6
#pragma GCC diagnostic ignored "-Wignored-attributes"
#endif