Mesa (master): glsl: Fix clang mismatched-tags warnings with glsl_type.
Vinson Lee
vlee at kemper.freedesktop.org
Sun Jun 15 20:37:53 UTC 2014
Module: Mesa
Branch: master
Commit: 4133c7126c8c694ee4b05da1f312c411c0f6fdeb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4133c7126c8c694ee4b05da1f312c411c0f6fdeb
Author: Vinson Lee <vlee at freedesktop.org>
Date: Sat Jun 14 23:37:41 2014 -0700
glsl: Fix clang mismatched-tags warnings with glsl_type.
Fix clang mismatched-tags warnings introduced with commit
4f5445a45d3ed02e00a061b10c943c0b079c6020.
./glsl_symbol_table.h:37:1: warning: class 'glsl_type' was previously declared as a struct [-Wmismatched-tags]
class glsl_type;
^
./glsl_types.h:86:8: note: previous use is here
struct glsl_type {
^
./glsl_symbol_table.h:37:1: note: did you mean struct here?
class glsl_type;
^~~~~
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/glsl/glsl_symbol_table.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glsl/glsl_symbol_table.h b/src/glsl/glsl_symbol_table.h
index 39b84e4..2528264 100644
--- a/src/glsl/glsl_symbol_table.h
+++ b/src/glsl/glsl_symbol_table.h
@@ -34,7 +34,7 @@ extern "C" {
#include "ir.h"
class symbol_table_entry;
-class glsl_type;
+struct glsl_type;
/**
* Facade class for _mesa_symbol_table
More information about the mesa-commit
mailing list