From 19ab4b35fbbe495ec0f8bbdc05484b8eb9a10b8d Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sat, 1 Dec 2007 14:24:44 +0000 Subject: [PATCH] For un-prototyped static inline functions declared in pthread_md.h on sparc64, use ANSI function headers and specifically indicate the lack of arguments with 'void'. Otherwise, warnings are generated at WARNS=3 for libkse, leading to a compile failure with -Werror. --- libexec/rtld-elf/sparc64/rtld_machdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rtld-elf/sparc64/rtld_machdep.h b/libexec/rtld-elf/sparc64/rtld_machdep.h index db2ce256c6cb..155675842660 100644 --- a/libexec/rtld-elf/sparc64/rtld_machdep.h +++ b/libexec/rtld-elf/sparc64/rtld_machdep.h @@ -37,7 +37,7 @@ struct Struct_Obj_Entry; /* Return the address of the .dynamic section in the dynamic linker. */ -Elf_Dyn *rtld_dynamic_addr(); +Elf_Dyn *rtld_dynamic_addr(void); #define rtld_dynamic(obj) rtld_dynamic_addr() #define RTLD_IS_DYNAMIC() (rtld_dynamic_addr() != NULL)