summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-13 16:46:43 -0700
committerIan Romanick <[email protected]>2010-08-13 16:46:43 -0700
commit768b55a5268572ff9fd03e57e92775882eb0a821 (patch)
treedb4187d5f64d1d702ec614d4b46b29ace7d986f9 /src/glsl/ast.h
parentd960b61ea3d2ed749a41a0d0fea621415d656848 (diff)
glsl2: Remove unnecessary use of 'struct' before type names
In C++ you don't have to say 'struct' or 'class' if the declaration of the type has been seen. Some compilers will complain if you use 'struct' when 'class' should have been used and vice versa. Fixes bugzilla #29539.
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index 7ce879bb79d..44c31b6e627 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -29,7 +29,6 @@
#include "list.h"
#include "glsl_parser_extras.h"
-struct ir_instruction;
struct _mesa_glsl_parse_state;
struct YYLTYPE;
@@ -657,8 +656,8 @@ public:
extern void
_mesa_ast_to_hir(exec_list *instructions, struct _mesa_glsl_parse_state *state);
-extern struct ir_rvalue *
-_mesa_ast_field_selection_to_hir(const struct ast_expression *expr,
+extern ir_rvalue *
+_mesa_ast_field_selection_to_hir(const ast_expression *expr,
exec_list *instructions,
struct _mesa_glsl_parse_state *state);