* config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
return value.
This commit is contained in:
parent
d6ed37ed5c
commit
74cda0c4ba
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user