Attempt to fix a compiler warning on Haiku.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 11 Jul 2013 23:17:52 -0400
changeset 7405 5a9172b56b18
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
--- a/src/test/SDL_test_log.c	Thu Jul 11 12:44:03 2013 -0400
+++ b/src/test/SDL_test_log.c	Thu Jul 11 23:17:52 2013 -0400
@@ -55,11 +55,12 @@
     time_t copy;
     static char buffer[64];
     struct tm *local;
+    const char *fmt = "%x %X";
 
-    SDL_memset(buffer, 0, sizeof(buffer));\
+    SDL_memset(buffer, 0, sizeof(buffer));
     copy = timestamp;
     local = localtime(&copy);
-    strftime(buffer, sizeof(buffer), "%x %X", local);
+    strftime(buffer, sizeof(buffer), fmt, local);
 
     return buffer;
 }