hometowns.c: In function `load_nations':
hometowns.c:328: warning: declaration of 'filename' shadows a previous local
hometowns.c:314: warning: shadowed declaration is here
{
FILE *list = NULL;
char filename[256]; - 314
/* load from nations list */
sprintf(filename, "%snations.lst", NATION_DIR);
if((list = fopen(filename, "r")) == NULL)
{
bug("load_nations(): cannot open %s for reading; aborting load", filename);
return;
}
top_nation = 0;
for( ; ; )
{
char *filename = feof(list) ? "$" : fread_string(list); - 328
not sure how to fix this or anything...
hometowns.c:328: warning: declaration of 'filename' shadows a previous local
hometowns.c:314: warning: shadowed declaration is here
{
FILE *list = NULL;
char filename[256]; - 314
/* load from nations list */
sprintf(filename, "%snations.lst", NATION_DIR);
if((list = fopen(filename, "r")) == NULL)
{
bug("load_nations(): cannot open %s for reading; aborting load", filename);
return;
}
top_nation = 0;
for( ; ; )
{
char *filename = feof(list) ? "$" : fread_string(list); - 328
not sure how to fix this or anything...