From 59155f70e701bc0b4fb816da991d6921f53b3bc7 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Mon, 13 Jul 2009 15:01:51 -0700 Subject: r300g: Small compile warning fixes. Signed-off-by: Corbin Simpson --- src/gallium/drivers/r300/r300_context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/r300/r300_context.h') diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 7a96f51e5b..d891fd6265 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -331,7 +331,8 @@ struct r300_context { }; /* Convenience cast wrapper. */ -static struct r300_context* r300_context(struct pipe_context* context) { +static INLINE struct r300_context* r300_context(struct pipe_context* context) +{ return (struct r300_context*)context; } -- cgit v1.2.3