Mesa (thalloc): thalloc: Fix warnings introduced by wrapper
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Wed Jan 19 01:30:39 UTC 2011
Module: Mesa
Branch: thalloc
Commit: 1b30b8e2bbc82dabe075898e18302a8638e951a0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b30b8e2bbc82dabe075898e18302a8638e951a0
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Wed Jan 19 02:28:16 2011 +0100
thalloc: Fix warnings introduced by wrapper
Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>
---
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) {
More information about the mesa-commit
mailing list