projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86f51d7
)
vc4: Fix a -Wformat-security warning.
author
Eric Anholt
<eric@anholt.net>
Tue, 17 May 2016 21:06:39 +0000
(14:06 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 18 May 2016 01:07:39 +0000
(18:07 -0700)
This is apparently enabled as an error in Android builds, and the compiler
can't tell that the return value is safe.
src/gallium/drivers/vc4/vc4_qpu_disasm.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_qpu_disasm.c
b/src/gallium/drivers/vc4/vc4_qpu_disasm.c
index 673c1bba092494500fbe69203a2cac99fa53808c..d48e753df3d1d7726c17c67ad43a045d468501d5 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_qpu_disasm.c
+++ b/
src/gallium/drivers/vc4/vc4_qpu_disasm.c
@@
-346,7
+346,7
@@
print_add_op(uint64_t inst)
if (is_mov)
fprintf(stderr, "mov");
else
- fprintf(stderr, DESC(qpu_add_opcodes, op_add));
+ fprintf(stderr,
"%s",
DESC(qpu_add_opcodes, op_add));
if ((inst & QPU_SF) && op_add != QPU_A_NOP)
fprintf(stderr, ".sf");