From 74cda0c4ba1c9950133ca2474b8821f7f120aeba Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 18 May 2012 05:48:50 +0000 Subject: * config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf return value. --- gas/ChangeLog | 5 +++++ gas/config/tc-dlx.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'gas') 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; } -- cgit v1.1