mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
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
This commit is contained in:
parent
09ef8e9283
commit
f20f2cc330
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue