Mesa (master): gallivm: init MM = NULL to silence warning
Brian Paul
brianp at kemper.freedesktop.org
Wed Mar 4 16:23:56 UTC 2015
Module: Mesa
Branch: master
Commit: 34ff9bc6696f3bb84406850d9bc59dfda4bcf8d6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34ff9bc6696f3bb84406850d9bc59dfda4bcf8d6
Author: Brian Paul <brianp at vmware.com>
Date: Tue Mar 3 13:20:56 2015 -0700
gallivm: init MM = NULL to silence warning
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
index 5210acc..e2578cf 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
@@ -493,7 +493,7 @@ lp_build_create_jit_compiler_for_module(LLVMExecutionEngineRef *OutJIT,
builder.setMCPU(MCPU);
#endif
- ShaderMemoryManager *MM;
+ ShaderMemoryManager *MM = NULL;
if (useMCJIT) {
#if HAVE_LLVM > 0x0303
BaseMemoryManager* JMM = reinterpret_cast<BaseMemoryManager*>(CMM);
More information about the mesa-commit
mailing list