From caff764e8c3cddb21b62601773bdae4806a9c541 Mon Sep 17 00:00:00 2001 From: David Holsgrove Date: Wed, 24 Dec 2014 11:55:49 +1000 Subject: MicroBlaze: Fix integer-pointer conversion warning 2015-01-06 David Holsgrove * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0. Signed-off-by: David Holsgrove --- sysdeps/microblaze/nptl/tls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/microblaze') diff --git a/sysdeps/microblaze/nptl/tls.h b/sysdeps/microblaze/nptl/tls.h index 5b13c82eb2..fb4a71a8c3 100644 --- a/sysdeps/microblaze/nptl/tls.h +++ b/sysdeps/microblaze/nptl/tls.h @@ -99,7 +99,7 @@ static inline void *__microblaze_get_thread_area (void) /* Code to initially initialize the thread pointer. r21 is reserved for thread pointer. */ # define TLS_INIT_TP(tcbp) \ - ({ __asm __volatile ("or r21,r0,%0" : : "r" ((void *)tcbp)); 0; }) + ({ __asm __volatile ("or r21,r0,%0" : : "r" ((void *)tcbp)); NULL; }) # define TLS_DEFINE_INIT_TP(tp, pd) void *tp = (pd) + 1 -- cgit 1.4.1