From: Ilia Mirkin Date: Sat, 21 Feb 2015 17:44:05 +0000 (-0500) Subject: tgsi: avoid returning pointer to local var, make it static X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1763494b315179495eabb97d50d025a04a6537e2;p=mesa.git tgsi: avoid returning pointer to local var, make it static Spotted by Coverity. Signed-off-by: Ilia Mirkin Reviewed-by: Matt Turner Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c index a8fc0089f5a..8d08059deca 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_exec.c +++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c @@ -1515,7 +1515,7 @@ store_dest_dstret(struct tgsi_exec_machine *mach, enum tgsi_exec_datatype dst_datatype) { uint i; - union tgsi_exec_channel null; + static union tgsi_exec_channel null; union tgsi_exec_channel *dst; union tgsi_exec_channel index2D; uint execmask = mach->ExecMask;