[Mesa-dev] [PATCH] gallivm: init MM = NULL to silence warning

Mark Janes mark.a.janes at intel.com
Wed Mar 4 08:52:43 PST 2015


Hi Brian,

Did you try to `make check` in mesa with these patches?

I get errors compiling glx-test:

src/glx/glxclient.h:59:25: fatal error: util/macros.h: No such file or
directory

-Mark

Brian Paul <brianp at vmware.com> writes:

> ---
>  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);
> -- 
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list