Removed some unused variables that gcc 4.6.1 complains about.
This commit is contained in:
parent
4f18aa19f5
commit
8912814135
10 changed files with 33 additions and 68 deletions
|
@ -57,7 +57,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
|
|||
SDL_HintPriority priority)
|
||||
{
|
||||
const char *env;
|
||||
SDL_Hint *prev, *hint;
|
||||
SDL_Hint *hint;
|
||||
|
||||
if (!name || !value) {
|
||||
return SDL_FALSE;
|
||||
|
@ -68,8 +68,7 @@ SDL_SetHintWithPriority(const char *name, const char *value,
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
prev = NULL;
|
||||
for (hint = SDL_hints; hint; prev = hint, hint = hint->next) {
|
||||
for (hint = SDL_hints; hint; hint = hint->next) {
|
||||
if (SDL_strcmp(name, hint->name) == 0) {
|
||||
if (priority < hint->priority) {
|
||||
return SDL_FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue