aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-08-21 15:44:35 -0700
committerIan Romanick <[email protected]>2011-09-09 12:01:50 -0700
commitf0dd21ac88c0ee0a7dd96012881deeb3172974b6 (patch)
tree6ccccef843a81f93196c95e7b4144022a5f54a33 /src/glsl
parent9a3bd5e0452c9c791ba94155d3c9ddba42abd114 (diff)
glsl: Silence "ast_to_hir.cpp:1984:25: warning: comparison of unsigned expression >= 0 is always true"
ast_type_qualifier::location should have been a signed integer from the beginning, and the giant comment in apply_type_qualifier_to_variable explains why. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40207 Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/ast.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index d1de2271873..532347df4bd 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -372,7 +372,7 @@ struct ast_type_qualifier {
* \note
* This field is only valid if \c explicit_location is set.
*/
- unsigned location;
+ int location;
/**
* Return true if and only if an interpolation qualifier is present.