* config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf

return value.
This commit is contained in:
Alan Modra 2012-05-18 05:48:50 +00:00
parent d6ed37ed5c
commit 74cda0c4ba
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-05-18 Alan Modra <amodra@gmail.com>
* config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
return value.
2012-05-18 James Lemke <jwlemke@codesourcery.com>
Alan Modra <amodra@gmail.com>

View File

@ -245,7 +245,10 @@ s_proc (int end_p)
/* Missing entry point, use function's name with the leading
char prepended. */
if (leading_char)
asprintf (&label, "%c%s", leading_char, name);
{
if (asprintf (&label, "%c%s", leading_char, name))
{ /* Avoid warning */ }
}
else
label = name;
}