From bec630c34753f7fbbac8712661b596ff5a76b7c1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 12 Nov 2012 23:24:01 +0100 Subject: clang: fix all warnings except deprecations --- talloc.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'talloc.h') diff --git a/talloc.h b/talloc.h index 0581bd09c5..909ce80ecf 100644 --- a/talloc.h +++ b/talloc.h @@ -58,7 +58,10 @@ typedef void TALLOC_CTX; /* try to make talloc_set_destructor() and talloc_steal() type safe, if we have a recent gcc */ -#if (__GNUC__ >= 3) +#if defined(__clang__) && defined(__llvm__) +#define _TALLOC_TYPEOF(ptr) void * +#define talloc_steal(ctx, ptr) _talloc_steal((ctx),(ptr)) +#elif (__GNUC__ >= 3) #define _TALLOC_TYPEOF(ptr) __typeof__(ptr) /* this extremely strange macro is to avoid some braindamaged warning stupidity in gcc 4.1.x */ -- cgit v1.2.3