Skip to content
Snippets Groups Projects
Commit c0f82e61 authored by Vinson Lee's avatar Vinson Lee Committed by Ian Romanick
Browse files

glsl: Fix 'format not a string literal and no format arguments' warning.

Fix the following GCC warning.
loop_controls.cpp: In function 'int calculate_iterations(ir_rvalue*, ir_rvalue*, ir_rvalue*, ir_expression_operation)':
loop_controls.cpp:88: warning: format not a string literal and no format arguments
(cherry picked from commit f20f2cc3)
parent 7f95c595
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ int
calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment,
enum ir_expression_operation op)
{
void *mem_ctx = talloc_init(__func__);
void *mem_ctx = talloc_init("%s", __func__);
ir_expression *const sub =
new(mem_ctx) ir_expression(ir_binop_sub, from->type, to, from);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment