src/test/SDL_test_log.c
changeset 10397 3126026a822b
parent 10396 fa4e35434a9c
child 10609 d702ecbd8ba7
     1.1 --- a/src/test/SDL_test_log.c	Sat Oct 01 10:36:24 2016 -0700
     1.2 +++ b/src/test/SDL_test_log.c	Sat Oct 01 10:38:15 2016 -0700
     1.3 @@ -50,23 +50,19 @@
     1.4   *
     1.5   * \return Ascii representation of the timestamp in localtime in the format '08/23/01 14:55:02'
     1.6   */
     1.7 -#pragma GCC diagnostic push
     1.8 -#pragma GCC diagnostic ignored "-Wformat-nonliteral"
     1.9  char *SDLTest_TimestampToString(const time_t timestamp)
    1.10  {
    1.11      time_t copy;
    1.12      static char buffer[64];
    1.13      struct tm *local;
    1.14 -    const char *fmt = "%x %X";
    1.15  
    1.16      SDL_memset(buffer, 0, sizeof(buffer));
    1.17      copy = timestamp;
    1.18      local = localtime(&copy);
    1.19 -    strftime(buffer, sizeof(buffer), fmt, local);
    1.20 +    strftime(buffer, sizeof(buffer), "%x %X", local);
    1.21  
    1.22      return buffer;
    1.23  }
    1.24 -#pragma GCC diagnostic pop
    1.25  
    1.26  /*
    1.27   * Prints given message with a timestamp in the TEST category and INFO priority.