[Mesa-dev] [PATCH] glsl: silence unused 'var' variable warning
Paul Berry
stereotype441 at gmail.com
Wed Oct 23 19:54:21 CEST 2013
On 22 October 2013 15:52, Brian Paul <brianp at vmware.com> wrote:
> ---
> src/glsl/builtin_variables.cpp | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/glsl/builtin_variables.cpp
> b/src/glsl/builtin_variables.cpp
> index fc1115b..1f62fcf 100644
> --- a/src/glsl/builtin_variables.cpp
> +++ b/src/glsl/builtin_variables.cpp
> @@ -888,8 +888,8 @@ builtin_variable_generator::generate_varyings()
> if (state->target == geometry_shader) {
> const glsl_type *per_vertex_in_type =
> this->per_vertex_in.construct_interface_instance();
> - ir_variable *var = add_variable("gl_in", array(per_vertex_in_type,
> 0),
> - ir_var_shader_in, -1);
> + add_variable("gl_in", array(per_vertex_in_type, 0),
> + ir_var_shader_in, -1);
> }
> if (state->target == vertex_shader || state->target ==
> geometry_shader) {
> const glsl_type *per_vertex_out_type =
> --
> 1.7.10.4
>
Thanks, Brian.
Reviewed-by: Paul Berry <stereotype441 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131023/be00ba82/attachment.html>
More information about the mesa-dev
mailing list