From: Brian Paul Date: Wed, 20 Jul 2011 03:10:25 +0000 (-0600) Subject: glsl: silence warning in linker.cpp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4470ff2ebf56b22421038bc7272ef22c085b839d;p=mesa.git glsl: silence warning in linker.cpp --- diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 34b64837a46..5ec08446d16 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -1343,7 +1343,7 @@ assign_attribute_or_color_locations(gl_shader_program *prog, foreach_list(node, sh->ir) { ir_variable *const var = ((ir_instruction *) node)->as_variable(); - if ((var == NULL) || (var->mode != direction)) + if ((var == NULL) || (var->mode != (unsigned) direction)) continue; if (var->explicit_location) {