Clean up GCC warnings (2019-08-29 edition)
Updated most parts of the code that were throwing warnings in GCC.
This commit is contained in:
parent
1f2c6c3c4e
commit
7938480174
16 changed files with 110 additions and 141 deletions
18
src/i18n.c
18
src/i18n.c
|
|
@ -4,7 +4,7 @@
|
|||
For Tux Paint
|
||||
Language-related functions
|
||||
|
||||
Copyright (c) 2002-2014 by Bill Kendrick and others
|
||||
Copyright (c) 2002-2019 by Bill Kendrick and others
|
||||
bill@newbreedsoftware.com
|
||||
http://www.tuxpaint.org/
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
$Id$
|
||||
|
||||
June 14, 2002 - December 11, 2016
|
||||
June 14, 2002 - August 29, 2019
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -986,7 +986,6 @@ static int set_current_language(const char *restrict locale_choice) MUST_CHECK;
|
|||
static int set_current_language(const char *restrict loc)
|
||||
{
|
||||
int i;
|
||||
int y_nudge = 0;
|
||||
char *oldloc;
|
||||
char *env_language;
|
||||
|
||||
|
|
@ -1104,7 +1103,6 @@ static int set_current_language(const char *restrict loc)
|
|||
if (lang_y_nudge[i][0] == langint)
|
||||
{
|
||||
wished_langs[j].lang_y_nudge = lang_y_nudge[i][1];
|
||||
//printf("y_nudge = %d\n", y_nudge);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -1130,18 +1128,6 @@ static int set_current_language(const char *restrict loc)
|
|||
need_right_to_left = wished_langs[0].need_right_to_left;
|
||||
need_right_to_left_word = wished_langs[0].need_right_to_left_word;
|
||||
|
||||
#if 0
|
||||
for (i = 0; lang_y_nudge[i][0] != -1; i++)
|
||||
{
|
||||
// printf("lang_y_nudge[%d][0] = %d\n", i, lang_y_nudge[i][0]);
|
||||
if (lang_y_nudge[i][0] == langint)
|
||||
{
|
||||
y_nudge = lang_y_nudge[i][1];
|
||||
//printf("y_nudge = %d\n", y_nudge);
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
fprintf(stderr, "DEBUG: Language is %s (%d) %s/%s\n",
|
||||
lang_prefix, langint, need_right_to_left ? "(RTL)" : "", need_right_to_left_word ? "(RTL words)" : "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue