Module: Mesa Branch: thalloc Commit: 1b30b8e2bbc82dabe075898e18302a8638e951a0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b30b8e2bbc82dabe075898e18302a8638e951a0
Author: Jakob Bornecrantz <[email protected]> Date: Wed Jan 19 02:28:16 2011 +0100 thalloc: Fix warnings introduced by wrapper Signed-off-by: Jakob Bornecrantz <[email protected]> --- src/thalloc/talloc.h | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/thalloc/talloc.h b/src/thalloc/talloc.h index e7cb5ce..8235813 100644 --- a/src/thalloc/talloc.h +++ b/src/thalloc/talloc.h @@ -74,7 +74,12 @@ talloc_size(const void *ctx, size_t size) { #define talloc_array_size(_ctx, _size, _count) talloc_size(_ctx, _size * _count) #define talloc_array(_ctx, _type, _count) (_type *)talloc_size(_ctx, sizeof(_type) * _count) -#define talloc_steal(new_ctx, _ptr) _ptr /* FIXME */ +static inline void * +talloc_steal(const void *new_ctx, const void *ptr) +{ + assert(0); + return (void*)ptr; +} static inline char * talloc_strdup(const void *ctx, const char *p) { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
