mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-19 01:38:12 +00:00
Fix "format not a string literal" errors
With GCC 6.1. https://bugzilla.libsdl.org/show_bug.cgi?id=3375
This commit is contained in:
@@ -50,6 +50,8 @@
|
||||
*
|
||||
* \return Ascii representation of the timestamp in localtime in the format '08/23/01 14:55:02'
|
||||
*/
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
char *SDLTest_TimestampToString(const time_t timestamp)
|
||||
{
|
||||
time_t copy;
|
||||
@@ -64,6 +66,7 @@ char *SDLTest_TimestampToString(const time_t timestamp)
|
||||
|
||||
return buffer;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
/*
|
||||
* Prints given message with a timestamp in the TEST category and INFO priority.
|
||||
|
Reference in New Issue
Block a user