projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
glsl2: Check for non-void functions that don't have a return statement.
[mesa.git]
/
src
/
glsl
/
glsl_parser_extras.h
diff --git
a/src/glsl/glsl_parser_extras.h
b/src/glsl/glsl_parser_extras.h
index cfe02e3b0c1a3a68ad7f243fd7286a8f3b6c2a3c..726bafa7e4b2d673af89ebebee8f106649ee4083 100644
(file)
--- a/
src/glsl/glsl_parser_extras.h
+++ b/
src/glsl/glsl_parser_extras.h
@@
-51,6
+51,9
@@
struct _mesa_glsl_parse_state {
*/
class ir_function_signature *current_function;
+ /** Have we found a return statement in this function? */
+ bool found_return;
+
/** Was there an error during compilation? */
bool error;