aboutsummaryrefslogtreecommitdiff
path: root/gas
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
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')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-dlx.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 61aae09..e037ffa 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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>
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;
}