From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17343 invoked by alias); 8 Aug 2012 18:06:16 -0000 Received: (qmail 17330 invoked by uid 22791); 8 Aug 2012 18:06:15 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from toast.topped-with-meat.com (HELO topped-with-meat.com) (204.197.218.159) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Aug 2012 18:05:53 +0000 Received: by topped-with-meat.com (Postfix, from userid 5281) id 307622C0E9; Wed, 8 Aug 2012 11:05:52 -0700 (PDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: libc-ports@sourceware.org Subject: [PATCH roland/arm-dl_start-warning] ARM: fix elf_machine_load_address warning Message-Id: <20120808180552.307622C0E9@topped-with-meat.com> Date: Wed, 08 Aug 2012 18:06:00 -0000 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.0 cv=LtfpOghc c=1 sm=1 a=zrn1dEUG-_MA:10 a=Z6MIti7PxpgA:10 a=kj9zAlcOel0A:10 a=hOe2yjtxAAAA:8 a=14OXPxybAAAA:8 a=nYVry9BGNX7AFZmudykA:9 a=CjuIK1q_8ugA:10 a=cSzJrfTzE-Or-PiA:21 a=LhU7NsTH5hDYK7sJ:21 a=WkljmVdYkabdwxfqvArNOQ==:117 X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00051.txt.bz2 Trunk GCC likes to warn about using objects of type 'void'. This cleans it up. Ok? (Or merge the branch yourself.) Thanks, Roland ports/ChangeLog.arm 2012-08-08 Roland McGrath * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use proper type for __dl_start declaration. diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h index 442fc3d..fe39a5e 100644 --- a/ports/sysdeps/arm/dl-machine.h +++ b/ports/sysdeps/arm/dl-machine.h @@ -70,7 +70,7 @@ elf_machine_dynamic (void) static inline Elf32_Addr __attribute__ ((unused)) elf_machine_load_address (void) { - extern void __dl_start asm ("_dl_start"); + extern Elf32_Addr internal_function __dl_start (void *) asm ("_dl_start"); Elf32_Addr got_addr = (Elf32_Addr) &__dl_start; Elf32_Addr pcrel_addr; #ifdef __thumb__