comparison src/SDL_error.c @ 1612:97d0966f4bf7

Fixed some ultra-pedantic gcc warnings
author Sam Lantinga <slouken@libsdl.org>
date Fri, 24 Mar 2006 06:10:24 +0000
parents d910939febfa
children 14717b52abc0 7995cc87b777
comparison
equal deleted inserted replaced
1611:ec3466b08f17 1612:97d0966f4bf7
88 error->args[error->argc++].value_ptr = 88 error->args[error->argc++].value_ptr =
89 va_arg(ap, void *); 89 va_arg(ap, void *);
90 break; 90 break;
91 case 's': 91 case 's':
92 { 92 {
93 int index = error->argc; 93 int i = error->argc;
94 char *str = va_arg(ap, char *); 94 const char *str = va_arg(ap, const char *);
95 if (str == NULL) 95 if (str == NULL)
96 str = "(null)"; 96 str = "(null)";
97 SDL_strlcpy((char *)error->args[index].buf, str, ERR_MAX_STRLEN); 97 SDL_strlcpy((char *)error->args[i].buf, str, ERR_MAX_STRLEN);
98 error->argc++; 98 error->argc++;
99 } 99 }
100 break; 100 break;
101 default: 101 default:
102 break; 102 break;