public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH roland/arm-dl_start-warning] ARM: fix elf_machine_load_address warning
@ 2012-08-08 18:06 Roland McGrath
  2012-08-08 20:10 ` Joseph S. Myers
  0 siblings, 1 reply; 2+ messages in thread
From: Roland McGrath @ 2012-08-08 18:06 UTC (permalink / raw)
  To: libc-ports

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  <roland@hack.frob.com>

	* 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__

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH roland/arm-dl_start-warning] ARM: fix elf_machine_load_address warning
  2012-08-08 18:06 [PATCH roland/arm-dl_start-warning] ARM: fix elf_machine_load_address warning Roland McGrath
@ 2012-08-08 20:10 ` Joseph S. Myers
  0 siblings, 0 replies; 2+ messages in thread
From: Joseph S. Myers @ 2012-08-08 20:10 UTC (permalink / raw)
  To: Roland McGrath; +Cc: libc-ports

On Wed, 8 Aug 2012, Roland McGrath wrote:

> Trunk GCC likes to warn about using objects of type 'void'.
> This cleans it up.
> 
> Ok?  (Or merge the branch yourself.)

OK.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-08 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-08 18:06 [PATCH roland/arm-dl_start-warning] ARM: fix elf_machine_load_address warning Roland McGrath
2012-08-08 20:10 ` Joseph S. Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).