mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-28 16:58:44 +00:00
silence -Wwrite-strings in visualtest
This commit is contained in:
parent
71c497a3a3
commit
8a355116d1
7 changed files with 12 additions and 12 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue