mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-27 21:48:29 +00:00
silence -Wwrite-strings in visualtest
This commit is contained in:
@@ -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