From: Alan Modra Date: Fri, 18 May 2012 05:48:50 +0000 (+0000) Subject: * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf X-Git-Tag: sid-snapshot-20120601~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74cda0c4ba1c9950133ca2474b8821f7f120aeba;p=external%2Fbinutils.git * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf return value. --- 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 + + * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf + return value. + 2012-05-18 James Lemke Alan Modra 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; }