silence -Wwrite-strings in visualtest

This commit is contained in:
Ozkan Sezer committed 2021-12-21 20:01:02 +03:00
1 parent 71c497a3a3
commit 8a355116d1
7 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -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);
}