diff options
author | Sam Lantinga <slouken@libsdl.org> | 2006-03-24 06:10:24 +0000 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2006-03-24 06:10:24 +0000 |
commit | 26cb9c7c805ee970a58b41cabfda602f1cd8722d (patch) | |
tree | a41356e57a18c6daadd047f46bcb4773c12275b5 /src/SDL_error.c | |
parent | 1237375c2d89ed11c7dac7dc44dd41c7e4faafab (diff) |
Fixed some ultra-pedantic gcc warnings
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401619
Diffstat (limited to 'src/SDL_error.c')
-rw-r--r-- | src/SDL_error.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SDL_error.c b/src/SDL_error.c index d4a28f66..11d89b3d 100644 --- a/src/SDL_error.c +++ b/src/SDL_error.c @@ -90,11 +90,11 @@ void SDL_SetError (const char *fmt, ...) break; case 's': { - int index = error->argc; - char *str = va_arg(ap, char *); + int i = error->argc; + const char *str = va_arg(ap, const char *); if (str == NULL) str = "(null)"; - SDL_strlcpy((char *)error->args[index].buf, str, ERR_MAX_STRLEN); + SDL_strlcpy((char *)error->args[i].buf, str, ERR_MAX_STRLEN); error->argc++; } break; |