Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2013 18:53:14 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257463 - head/contrib/binutils/binutils
Message-ID:  <201310311853.r9VIrEPU013759@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Thu Oct 31 18:53:13 2013
New Revision: 257463
URL: http://svnweb.freebsd.org/changeset/base/257463

Log:
  Queisce warning about attempting to add char * together and use explicit
  array indexing to indicate what is meant to be done

Modified:
  head/contrib/binutils/binutils/readelf.c

Modified: head/contrib/binutils/binutils/readelf.c
==============================================================================
--- head/contrib/binutils/binutils/readelf.c	Thu Oct 31 18:44:40 2013	(r257462)
+++ head/contrib/binutils/binutils/readelf.c	Thu Oct 31 18:53:13 2013	(r257463)
@@ -7118,7 +7118,7 @@ process_symbol_table (FILE *file)
 
 	      n = print_vma (si, DEC_5);
 	      if (n < 5)
-		fputs ("     " + n, stdout);
+		fputs (&"     "[n], stdout);
 	      printf (" %3lu: ", hn);
 	      print_vma (psym->st_value, LONG_HEX);
 	      putchar (' ');



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310311853.r9VIrEPU013759>