projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77f7ef0
)
ac: Fix a compiler warning for possibly undefined "name"
author
Eric Anholt
<eric@anholt.net>
Tue, 17 Oct 2017 20:45:09 +0000
(13:45 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 23 Oct 2017 17:14:40 +0000
(10:14 -0700)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_llvm_build.c
patch
|
blob
|
history
diff --git
a/src/amd/common/ac_llvm_build.c
b/src/amd/common/ac_llvm_build.c
index e5cd23e02513e1182767076826a7d58e99dfe0e5..4d8f42d572c27ff488f969519ae78aa9a816e522 100644
(file)
--- 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) {