mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
glsl2: Clean-up two 'unused variable' warnings
This commit is contained in:
parent
cf41c8a0d8
commit
7ffe40532f
2 changed files with 5 additions and 0 deletions
|
|
@ -336,6 +336,8 @@ ir_validate::validate_ir(ir_instruction *ir, void *data)
|
|||
void
|
||||
check_node_type(ir_instruction *ir, void *data)
|
||||
{
|
||||
(void) data;
|
||||
|
||||
if (ir->ir_type <= ir_type_unset || ir->ir_type >= ir_type_max) {
|
||||
printf("Instruction node with unset type\n");
|
||||
ir->print(); printf("\n");
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ struct gl_shader *
|
|||
_mesa_new_shader(GLcontext *ctx, GLuint name, GLenum type)
|
||||
{
|
||||
struct gl_shader *shader;
|
||||
|
||||
(void) ctx;
|
||||
|
||||
assert(type == GL_FRAGMENT_SHADER || type == GL_VERTEX_SHADER);
|
||||
shader = talloc_zero(NULL, struct gl_shader);
|
||||
if (shader) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue