Commit a0d04f78 authored by Lynn Garren's avatar Lynn Garren
Browse files

pragma push and pop need gcc 4.7 or later

parent 4d73ccd0
......@@ -21,7 +21,7 @@ namespace Genfun {
// don't generate warnings about intentional shadowing
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 5
#if __GNUC__ > 3 && __GNUC_MINOR__ > 6
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
......@@ -53,7 +53,7 @@ namespace Genfun {
}
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 5
#if __GNUC__ > 3 && __GNUC_MINOR__ > 6
#pragma GCC diagnostic pop
#endif
#endif
......
......@@ -30,7 +30,7 @@ namespace Genfun {
// don't generate warnings about intentional shadowing
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 5
#if __GNUC__ > 3 && __GNUC_MINOR__ > 6
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#endif
......@@ -62,7 +62,7 @@ namespace Genfun {
}
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 5
#if __GNUC__ > 3 && __GNUC_MINOR__ > 6
#pragma GCC diagnostic pop
#endif
#endif
......
......@@ -1487,7 +1487,7 @@ do_nothing_deleter::operator () ( void const * ) const
#if defined __GNUC__
#if __GNUC__ > 3 && __GNUC_MINOR__ > 5
#if __GNUC__ > 3 && __GNUC_MINOR__ > 6
#pragma GCC diagnostic pop
#endif
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment