diff options
author | Vinson Lee <[email protected]> | 2010-09-15 05:17:57 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-09-15 05:17:57 -0700 |
commit | f20f2cc3306310f6fc4c338f91cfac10f98335d3 (patch) | |
tree | b18809d8d7b0f9de9a13641f4efb31a974c17fb8 /src | |
parent | 09ef8e9283f17e5dc9fa4a86c659048acda833cb (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/loop_controls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/loop_controls.cpp b/src/glsl/loop_controls.cpp index 9619d8ae555..2ef3d305254 100644 --- a/src/glsl/loop_controls.cpp +++ b/src/glsl/loop_controls.cpp @@ -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); |