Browse Source

math: do not use #pragma diagnostic push for GCC prior to 4.6.

legacy
Sam Hocevar sam 12 years ago
parent
commit
64da211c62
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lol/math/vector.h

+ 2
- 2
src/lol/math/vector.h View File

@@ -1170,7 +1170,7 @@ DECLARE_ALL_VECTOR_OPS(uint64_t)
* will be used. * will be used.
* Also we do this for the whole block of declarations, because GCC prior * Also we do this for the whole block of declarations, because GCC prior
* to 4.6.3 does not appear to support _Pragma() inside a macro. */ * to 4.6.3 does not appear to support _Pragma() inside a macro. */
#if defined __GNUC__ && (__GNUC__ >= 4)
#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
# pragma GCC diagnostic push # pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wsign-compare" # pragma GCC diagnostic ignored "-Wsign-compare"
#elif defined _MSC_VER #elif defined _MSC_VER
@@ -1285,7 +1285,7 @@ DECLARE_ALL_VECTOR_COERCE_OPS(double, real)
DECLARE_ALL_VECTOR_COERCE_OPS(long double, real) DECLARE_ALL_VECTOR_COERCE_OPS(long double, real)
#endif #endif


#if defined __GNUC__ && (__GNUC__ >= 4)
#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
# pragma GCC diagnostic pop # pragma GCC diagnostic pop
#elif defined _MSC_VER #elif defined _MSC_VER
# pragma warning(pop) # pragma warning(pop)


Loading…
Cancel
Save