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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=74cda0c4ba1c9950133ca2474b8821f7f120aeba;p=binutils-gdb.git * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf return value. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 61aae093db3..e037ffa1214 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 25841ed1eed..530e03cbd21 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; }