r300g: Small compile warning fixes.

Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
This commit is contained in:
Nicolai Hähnle 2009-07-13 15:01:51 -07:00 committed by Corbin Simpson
parent b3f1d370a2
commit 59155f70e7
3 changed files with 5 additions and 2 deletions

View 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;
}

View 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;

View 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;
}