From owner-svn-src-head@FreeBSD.ORG Sun May 22 22:15:43 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10F0B1065687; Sun, 22 May 2011 22:15:43 +0000 (UTC) (envelope-from benl@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 00C6C8FC12; Sun, 22 May 2011 22:15:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4MMFgtC092980; Sun, 22 May 2011 22:15:42 GMT (envelope-from benl@svn.freebsd.org) Received: (from benl@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4MMFgeN092977; Sun, 22 May 2011 22:15:42 GMT (envelope-from benl@svn.freebsd.org) Message-Id: <201105222215.p4MMFgeN092977@svn.freebsd.org> From: Ben Laurie Date: Sun, 22 May 2011 22:15:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222205 - head/contrib/binutils/gas X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 22:15:43 -0000 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,