From: Eric Anholt Date: Tue, 17 Oct 2017 20:45:09 +0000 (-0700) Subject: ac: Fix a compiler warning for possibly undefined "name" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34c04c734f6e6b59f11e6cde9cc9038f3335cc29;p=mesa.git ac: Fix a compiler warning for possibly undefined "name" Reviewed-by: Nicolai Hähnle --- 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) {