From 34c04c734f6e6b59f11e6cde9cc9038f3335cc29 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 17 Oct 2017 13:45:09 -0700 Subject: [PATCH] ac: Fix a compiler warning for possibly undefined "name" MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_llvm_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index e5cd23e0251..4d8f42d572c 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -1257,7 +1257,7 @@ LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx, LLVMTypeRef dst_type; LLVMValueRef args[11]; unsigned num_args = 0; - const char *name; + const char *name = NULL; char intr_name[128], type[64]; if (HAVE_LLVM >= 0x0400) { -- 2.30.2