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]

Re: Warning fix for nptl/tls.h


On 7/15/06, Jeff Bailey <jbailey@raspberryginger.com> wrote:
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() \

Thanks Jeff! I'll check this in after I run a build.


I modified your ChangeLog entry. Your entry should include the macro
modified "(TLS_INIT_TP)" and should be as canonical as possible
"Return NULL."

Cheers,
Carlos.


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