r300g: Small compile warning fixes.
authorNicolai Hähnle <nhaehnle@gmail.com>
Mon, 13 Jul 2009 22:01:51 +0000 (15:01 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 13 Jul 2009 23:26:29 +0000 (16:26 -0700)
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
src/gallium/drivers/r300/r300_context.h
src/gallium/drivers/r300/r300_query.h
src/gallium/drivers/r300/r300_screen.h

index 7a96f51..d891fd6 100644 (file)
@@ -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;
 }
 
index 4f447ea..6a76460 100644 (file)
@@ -27,6 +27,8 @@
 #include "r300_cs.h"
 #include "r300_reg.h"
 
+struct r300_context;
+
 struct r300_query {
     /* The kind of query. Currently only OQ is supported. */
     unsigned type;
index 3f52dbc..2a0e41f 100644 (file)
@@ -49,7 +49,7 @@ struct r300_transfer {
 };
 
 /* Convenience cast wrapper. */
-static struct r300_screen* r300_screen(struct pipe_screen* screen) {
+static INLINE struct r300_screen* r300_screen(struct pipe_screen* screen) {
     return (struct r300_screen*)screen;
 }