From 81f49a774eec3990b0a6ffeca75119e6a3ef827d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 29 Apr 2010 17:57:28 -0700 Subject: [PATCH] Quiet warnings about ir_shader not being handled in places it's not needed. --- glsl_parser_extras.cpp | 1 + ir_variable.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp index 4255d2d66e7..4183d138566 100644 --- a/glsl_parser_extras.cpp +++ b/glsl_parser_extras.cpp @@ -48,6 +48,7 @@ _mesa_glsl_shader_target_name(enum _mesa_glsl_parser_targets target) case vertex_shader: return "vertex"; case fragment_shader: return "fragment"; case geometry_shader: return "geometry"; + case ir_shader: break; } assert(!"Should not get here."); diff --git a/ir_variable.cpp b/ir_variable.cpp index b5e7d6e9339..2c2b57a7114 100644 --- a/ir_variable.cpp +++ b/ir_variable.cpp @@ -21,6 +21,7 @@ * DEALINGS IN THE SOFTWARE. */ +#include #include "glsl_parser_extras.h" #include "glsl_symbol_table.h" #include "ir.h" @@ -315,5 +316,9 @@ _mesa_glsl_initialize_variables(exec_list *instructions, case fragment_shader: initialize_fs_variables(instructions, state); break; + case ir_shader: + fprintf(stderr, "ir reader has no builtin variables"); + exit(1); + break; } } -- 2.30.2