From: Marek Olšák Date: Tue, 20 Mar 2018 21:02:43 +0000 (-0400) Subject: radeonsi: fix a snprintf warning on gcc 7.3.0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8d55374dc4be7eaeac4684d259c1ef56a4dc30a;p=mesa.git radeonsi: fix a snprintf warning on gcc 7.3.0 --- diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index c8ac8548b44..90cc2e0d981 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -648,7 +648,7 @@ static void emit_declaration(struct lp_build_tgsi_context *bld_base, case TGSI_FILE_TEMPORARY: { - char name[16] = ""; + char name[18] = ""; LLVMValueRef array_alloca = NULL; unsigned decl_size; unsigned writemask = decl->Declaration.UsageMask;