Module Name:    src
Committed By:   matt
Date:           Sat Feb  2 14:03:38 UTC 2013

Modified Files:
        src/sys/sys: cdefs_elf.h

Log Message:
Add an explicit (void *) cast to __link_set_make_entry*
(these probably should have ptype added to them).


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/sys/cdefs_elf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/cdefs_elf.h
diff -u src/sys/sys/cdefs_elf.h:1.40 src/sys/sys/cdefs_elf.h:1.41
--- src/sys/sys/cdefs_elf.h:1.40	Sun Mar  4 16:14:48 2012
+++ src/sys/sys/cdefs_elf.h	Sat Feb  2 14:03:38 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: cdefs_elf.h,v 1.40 2012/03/04 16:14:48 tron Exp $	*/
+/*	$NetBSD: cdefs_elf.h,v 1.41 2013/02/02 14:03:38 matt Exp $	*/
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -132,10 +132,10 @@
 #ifndef __lint__
 #define	__link_set_make_entry(set, sym)					\
 	static void const * const __link_set_##set##_sym_##sym		\
-	    __section("link_set_" #set) __used = &sym
+	    __section("link_set_" #set) __used = (void *)&sym
 #define	__link_set_make_entry2(set, sym, n)				\
 	static void const * const __link_set_##set##_sym_##sym##_##n	\
-	    __section("link_set_" #set) __used = &sym[n]
+	    __section("link_set_" #set) __used = (void *)&sym[n]
 #else
 #define	__link_set_make_entry(set, sym)					\
 	extern void const * const __link_set_##set##_sym_##sym

Reply via email to