1
1

Avoid some compiler warnings that come up ''every day'' in MTT (and

have been for eons): make a symbol be used in a dumb but harmless way.

This commit was SVN r15158.
Этот коммит содержится в:
Jeff Squyres 2007-06-21 15:42:06 +00:00
родитель bd56dc7e5d
Коммит 57d09c10f7
3 изменённых файлов: 27 добавлений и 0 удалений

Просмотреть файл

@ -113,6 +113,15 @@ static int finish_parsing(void)
YY_CURRENT_BUFFER = NULL; YY_CURRENT_BUFFER = NULL;
#endif /* YY_CURRENT_BUFFER_LVALUE */ #endif /* YY_CURRENT_BUFFER_LVALUE */
} }
/* Put in this dumb thing to avoid a compiler warning about
yy_flex_realloc being defined but not used. @#$@!#$!@#$ */
{
char *foo = malloc(1);
foo = yy_flex_realloc(foo, 2);
free(foo);
}
return YY_NULL; return YY_NULL;
} }

Просмотреть файл

@ -97,6 +97,15 @@ static int finish_parsing(void)
YY_CURRENT_BUFFER = NULL; YY_CURRENT_BUFFER = NULL;
#endif /* YY_CURRENT_BUFFER_LVALUE */ #endif /* YY_CURRENT_BUFFER_LVALUE */
} }
/* Put in this dumb thing to avoid a compiler warning about
yy_flex_realloc being defined but not used. @#$@!#$!@#$ */
{
char *foo = malloc(1);
foo = yy_flex_realloc(foo, 2);
free(foo);
}
return YY_NULL; return YY_NULL;
} }

Просмотреть файл

@ -88,6 +88,15 @@ int opal_show_help_finish_parsing(void)
YY_CURRENT_BUFFER = NULL; YY_CURRENT_BUFFER = NULL;
#endif /* YY_CURRENT_BUFFER_LVALUE */ #endif /* YY_CURRENT_BUFFER_LVALUE */
} }
/* Put in this dumb thing to avoid a compiler warning about
yy_flex_realloc being defined but not used. @#$@!#$!@#$ */
{
char *foo = malloc(1);
foo = yy_flex_realloc(foo, 2);
free(foo);
}
return YY_NULL; return YY_NULL;
} }