This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Warning fix for nptl/tls.h


csu/libc-tls.c expects TLS_INIT_TP to return a pointer.  This silences
the warning.

2006-07-15  Jeff Bailey  <jbailey@ubuntu.com>

	* sysdeps/hppa/nptl/tls.h: Use NULL instead of 0 to avoid
	pointer conversion warning.

--- ports/sysdeps/hppa/nptl/tls.h.old	2006-07-15 10:34:30.000000000 -0400
+++ ports/sysdeps/hppa/nptl/tls.h	2006-07-15 10:34:47.000000000 -0400
@@ -102,7 +102,7 @@
    special attention since 'errno' is not yet available and if the
    operation can cause a failure 'errno' must not be touched.  */
 # define TLS_INIT_TP(tcbp, secondcall) \
-  ({ __set_cr27(tcbp); 0; })
+  ({ __set_cr27(tcbp); NULL; })
 
 /* Return the address of the dtv for the current thread.  */
 # define THREAD_DTV() \


-- 
I do not agree with a word you say, but I will defend to the death your
right to say it. 
 - Voltaire


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]