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 7a96f51e5b06fa1d78cd6cd061223d797446bb34..d891fd6265f1f9a3acbb0e2a6d4942fc04fc79a1 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 4f447ea45b85f6c8c31d98cd03ea3d63b947ad40..6a7646087a74bb5fbc821116591d570068673016 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 3f52dbc3beaebf1ac381cda80205a2ab4e34b93a..2a0e41fbc3b5c86d520d4c96217544c8cb7bd04c 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;
 }