gallivm: Fix a signature mismatch warning
authorAdam Jackson <ajax@redhat.com>
Mon, 10 May 2021 16:26:48 +0000 (12:26 -0400)
committerAdam Jackson <ajax@redhat.com>
Tue, 11 May 2021 13:14:30 +0000 (09:14 -0400)
commit37e152647985f88a988d07fe05628b42c3d61607
treeeaf7fc475f76701c478635f8eb94919ae4264d5d
parent811f289c56114491cd04c0e8f823e062ce323d69
gallivm: Fix a signature mismatch warning

gcc 11 says:

../src/gallium/auxiliary/gallivm/lp_bld_format_soa.c:84:49: warning: argument 3 of type ‘struct LLVMOpaqueValue * const*’ declared as a pointer [-Warray-parameter=]
   84 |                             const LLVMValueRef *unswizzled,
      |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
In file included from ../src/gallium/auxiliary/gallivm/lp_bld_format_soa.c:42:
../src/gallium/auxiliary/gallivm/lp_bld_format.h:126:48: note: previously declared as an array ‘struct LLVMOpaqueValue * const[4]’
  126 |                             const LLVMValueRef unswizzled[4],
      |                             ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10738>
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c