From 24e7e3d3fcecc882c420e60e882675a8e32edce8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 17 May 2016 14:06:39 -0700 Subject: [PATCH] vc4: Fix a -Wformat-security warning. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/vc4/vc4_qpu_disasm.c b/src/gallium/drivers/vc4/vc4_qpu_disasm.c index 673c1bba092..d48e753df3d 100644 --- 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"); -- 2.30.2