From 74cda0c4ba1c9950133ca2474b8821f7f120aeba Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 18 May 2012 05:48:50 +0000 Subject: [PATCH] * 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(-) 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; } -- 2.30.2