Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2011 22:15:42 +0000 (UTC)
From:      Ben Laurie <benl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222205 - head/contrib/binutils/gas
Message-ID:  <201105222215.p4MMFgeN092977@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: benl
Date: Sun May 22 22:15:42 2011
New Revision: 222205
URL: http://svn.freebsd.org/changeset/base/222205

Log:
  Fix clang warnings.
  
  Approved by:	philip (mentor)

Modified:
  head/contrib/binutils/gas/read.h
  head/contrib/binutils/gas/write.c

Modified: head/contrib/binutils/gas/read.h
==============================================================================
--- head/contrib/binutils/gas/read.h	Sun May 22 22:15:16 2011	(r222204)
+++ head/contrib/binutils/gas/read.h	Sun May 22 22:15:42 2011	(r222205)
@@ -30,7 +30,7 @@ extern char *input_line_pointer;	/* -> c
 
 #ifdef PERMIT_WHITESPACE
 #define SKIP_WHITESPACE()			\
-  ((*input_line_pointer == ' ') ? ++input_line_pointer : 0)
+  do { if (*input_line_pointer == ' ') ++input_line_pointer; } while (0)
 #else
 #define SKIP_WHITESPACE() know(*input_line_pointer != ' ' )
 #endif

Modified: head/contrib/binutils/gas/write.c
==============================================================================
--- head/contrib/binutils/gas/write.c	Sun May 22 22:15:16 2011	(r222204)
+++ head/contrib/binutils/gas/write.c	Sun May 22 22:15:42 2011	(r222205)
@@ -345,7 +345,7 @@ record_alignment (/* Segment to which al
     return;
 
   if ((unsigned int) align > bfd_get_section_alignment (stdoutput, seg))
-    bfd_set_section_alignment (stdoutput, seg, align);
+    (void) bfd_set_section_alignment (stdoutput, seg, align);
 }
 
 int
@@ -2247,7 +2247,7 @@ relax_segment (struct frag *segment_frag
 
 		      newf = frag_alloc (ob);
 		      obstack_blank_fast (ob, fragP->fr_var);
-		      obstack_finish (ob);
+		      (void) obstack_finish (ob);
 		      memcpy (newf, fragP, SIZEOF_STRUCT_FRAG);
 		      memcpy (newf->fr_literal,
 			      fragP->fr_literal + fragP->fr_fix,



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