src/SDL_error.c
changeset 10403 a0c76d344583
parent 10396 fa4e35434a9c
child 10643 930938c7ca82
     1.1 --- a/src/SDL_error.c	Sat Oct 01 11:04:45 2016 -0700
     1.2 +++ b/src/SDL_error.c	Sat Oct 01 11:22:39 2016 -0700
     1.3 @@ -116,8 +116,10 @@
     1.4      return -1;
     1.5  }
     1.6  
     1.7 +#ifdef __GNUC__
     1.8  #pragma GCC diagnostic push
     1.9  #pragma GCC diagnostic ignored "-Wformat-nonliteral"
    1.10 +#endif
    1.11  /* This function has a bit more overhead than most error functions
    1.12     so that it supports internationalization and thread-safe errors.
    1.13  */
    1.14 @@ -218,7 +220,9 @@
    1.15      }
    1.16      return (errstr);
    1.17  }
    1.18 +#ifdef __GNUC__
    1.19  #pragma GCC diagnostic pop
    1.20 +#endif
    1.21  
    1.22  /* Available for backwards compatibility */
    1.23  const char *