On 08/26/2013 02:42 PM, Matt Turner wrote:
On Sun, Aug 25, 2013 at 10:07 PM, Liu Xin <liu...@icubecorp.com> wrote:
HI, list,

i don't understand why glsl source  have  so many 'cast to void' operations,
like this.

ir_rvalue *
ast_node::hir(exec_list *instructions,
           struct _mesa_glsl_parse_state *state)
{
    (void) instructions;
    (void) state;

    return NULL;
}

i think it's totally void operation, do you guy just make gcc compiler
happy?
Yes, the purpose is only to avoid unused variable warnings emitted by
the compiler.
yes it is. now i understood. clean code!
--lx

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to