From owner-svn-src-head@FreeBSD.ORG Sun May 22 22:15:16 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 AFA67106564A; Sun, 22 May 2011 22:15:16 +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 860A68FC21; Sun, 22 May 2011 22:15:16 +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 p4MMFGgQ092930; Sun, 22 May 2011 22:15:16 GMT (envelope-from benl@svn.freebsd.org) Received: (from benl@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4MMFGjg092926; Sun, 22 May 2011 22:15:16 GMT (envelope-from benl@svn.freebsd.org) Message-Id: <201105222215.p4MMFGjg092926@svn.freebsd.org> From: Ben Laurie Date: Sun, 22 May 2011 22:15:16 +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: r222204 - head/contrib/binutils/binutils 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:16 -0000 Author: benl Date: Sun May 22 22:15:16 2011 New Revision: 222204 URL: http://svn.freebsd.org/changeset/base/222204 Log: Fix clang warnings. Approved by: philip (mentor) Modified: head/contrib/binutils/binutils/objcopy.c head/contrib/binutils/binutils/readelf.c head/contrib/binutils/binutils/strings.c Modified: head/contrib/binutils/binutils/objcopy.c ============================================================================== --- head/contrib/binutils/binutils/objcopy.c Sun May 22 22:14:15 2011 (r222203) +++ head/contrib/binutils/binutils/objcopy.c Sun May 22 22:15:16 2011 (r222204) @@ -1542,7 +1542,8 @@ copy_object (bfd *ibfd, bfd *obfd) /* Umm, not sure what to do in this case. */ debuglink_vma = 0x1000; - bfd_set_section_vma (obfd, gnu_debuglink_section, debuglink_vma); + (void) bfd_set_section_vma (obfd, gnu_debuglink_section, + debuglink_vma); } } Modified: head/contrib/binutils/binutils/readelf.c ============================================================================== --- head/contrib/binutils/binutils/readelf.c Sun May 22 22:14:15 2011 (r222203) +++ head/contrib/binutils/binutils/readelf.c Sun May 22 22:15:16 2011 (r222204) @@ -9701,7 +9701,7 @@ process_archive (char *file_name, FILE * } if ((longnames_size & 1) != 0) - getc (file); + (void) getc (file); got = fread (&arhdr, 1, sizeof arhdr, file); if (got != sizeof arhdr) Modified: head/contrib/binutils/binutils/strings.c ============================================================================== --- head/contrib/binutils/binutils/strings.c Sun May 22 22:14:15 2011 (r222203) +++ head/contrib/binutils/binutils/strings.c Sun May 22 22:15:16 2011 (r222204) @@ -593,7 +593,7 @@ print_strings (const char *filename, FIL case 8: #if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) if (sizeof (start) > sizeof (long)) - printf ("%7Lo ", (unsigned long long) start); + printf ("%7llo ", (unsigned long long) start); else #else # if !BFD_HOST_64BIT_LONG @@ -608,7 +608,7 @@ print_strings (const char *filename, FIL case 10: #if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) if (sizeof (start) > sizeof (long)) - printf ("%7Ld ", (unsigned long long) start); + printf ("%7lld ", (unsigned long long) start); else #else # if !BFD_HOST_64BIT_LONG @@ -623,7 +623,7 @@ print_strings (const char *filename, FIL case 16: #if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) if (sizeof (start) > sizeof (long)) - printf ("%7Lx ", (unsigned long long) start); + printf ("%7llx ", (unsigned long long) start); else #else # if !BFD_HOST_64BIT_LONG