silence -Wwrite-strings in visualtest
This commit is contained in:
1 parent
71c497a3a3
commit
8a355116d1
7 files changed
+12
-12
No files matched your search
@@ -20,11 +20,11 @@
|
||||
#include <errno.h>
|
||||
|
||||
static void
|
||||
LogLastError(char* str)
|
||||
LogLastError(const char* str)
|
||||
{
|
||||
char* error = (char*)strerror(errno);
|
||||
const char* error = strerror(errno);
|
||||
if(!str || !error)
|
||||
return;
|
||||
return;
|
||||
SDLTest_LogError("%s: %s", str, error);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user