Mesa (master): graw: Add struct pipe_surface forward declaration.
Vinson Lee
vlee at kemper.freedesktop.org
Mon Nov 8 19:56:59 UTC 2010
Module: Mesa
Branch: master
Commit: ef6967ddc201be6c400701703dd0774570d5bfee
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef6967ddc201be6c400701703dd0774570d5bfee
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Nov 8 11:55:30 2010 -0800
graw: Add struct pipe_surface forward declaration.
Fixes this GCC warning.
graw.h:93: warning: 'struct pipe_surface' declared inside parameter list
graw.h:93: warning: its scope is only this definition or declaration,
which is probably not what you want
---
src/gallium/include/state_tracker/graw.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/include/state_tracker/graw.h b/src/gallium/include/state_tracker/graw.h
index 8da197f..217fa31 100644
--- a/src/gallium/include/state_tracker/graw.h
+++ b/src/gallium/include/state_tracker/graw.h
@@ -44,8 +44,9 @@
#include "pipe/p_compiler.h"
#include "pipe/p_format.h"
-struct pipe_screen;
struct pipe_context;
+struct pipe_screen;
+struct pipe_surface;
/* Returns a handle to be used with flush_frontbuffer()/present().
*
More information about the mesa-commit
mailing list