aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2012-05-18 05:48:50 +0000
committerAlan Modra <amodra@gmail.com>2012-05-18 05:48:50 +0000
commit74cda0c4ba1c9950133ca2474b8821f7f120aeba (patch)
tree6fe2b6d82e6252e78ea0afe9ea71a30439498ff7 /gas/config
parentd6ed37ed5c06c38494b884a03c783f04d8ceb575 (diff)
downloadgdb-74cda0c4ba1c9950133ca2474b8821f7f120aeba.zip
gdb-74cda0c4ba1c9950133ca2474b8821f7f120aeba.tar.gz
gdb-74cda0c4ba1c9950133ca2474b8821f7f120aeba.tar.bz2
* config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
return value.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-dlx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-dlx.c b/gas/config/tc-dlx.c
index 25841ed..530e03c 100644
--- a/gas/config/tc-dlx.c
+++ b/gas/config/tc-dlx.c
@@ -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;
}