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.
Этот коммит содержится в:
родитель
bd56dc7e5d
Коммит
57d09c10f7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user