[Mesa-dev] void operation in glsl

Liu Xin liuxin at icubecorp.com
Sun Aug 25 22:07:56 PDT 2013


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?

thanks,
--lx



More information about the mesa-dev mailing list