Attempt to fix a compiler warning on Haiku.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 11 Jul 2013 23:17:52 -0400
changeset 74055a9172b56b18
parent 7404 dfbe1bfff593
child 7406 fb02213c11d3
Attempt to fix a compiler warning on Haiku.

(if this works...Haiku generates no warnings. I know, right?!?)
src/test/SDL_test_log.c
     1.1 --- a/src/test/SDL_test_log.c	Thu Jul 11 12:44:03 2013 -0400
     1.2 +++ b/src/test/SDL_test_log.c	Thu Jul 11 23:17:52 2013 -0400
     1.3 @@ -55,11 +55,12 @@
     1.4      time_t copy;
     1.5      static char buffer[64];
     1.6      struct tm *local;
     1.7 +    const char *fmt = "%x %X";
     1.8  
     1.9 -    SDL_memset(buffer, 0, sizeof(buffer));\
    1.10 +    SDL_memset(buffer, 0, sizeof(buffer));
    1.11      copy = timestamp;
    1.12      local = localtime(&copy);
    1.13 -    strftime(buffer, sizeof(buffer), "%x %X", local);
    1.14 +    strftime(buffer, sizeof(buffer), fmt, local);
    1.15  
    1.16      return buffer;
    1.17  }