]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
* config/tc-dlx.c (s_proc): Avoid warning about ignoring asprintf
authorAlan Modra <amodra@bigpond.net.au>
Fri, 18 May 2012 05:48:49 +0000 (05:48 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Fri, 18 May 2012 05:48:49 +0000 (05:48 +0000)
return value.

gas/ChangeLog
gas/config/tc-dlx.c

index 61aae093db398af8ee55236cd808c34c83a9ef1e..e037ffa12149ffdb9a9df096ffe25f787bd53fcc 100644 (file)
@@ -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>
 
index 25841ed1eed2f9f7702ec961e3a91177335f29d7..530e03cbd21f53619ffdd01e908caf5d24222e2e 100644 (file)
@@ -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;
        }