From: Ben Pfaff Date: Mon, 31 Aug 2020 18:00:24 +0000 (-0700) Subject: spv-light-decoder: Avoid GCC 10.x warning in decode_spvlb_valign(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49437d4844accdd25e1f47f5d0a621f6ff6dd768;p=pspp spv-light-decoder: Avoid GCC 10.x warning in decode_spvlb_valign(). It seems to be wrong, but GCC can't tell and it's hard to blame it. --- diff --git a/src/output/spv/spv-light-decoder.c b/src/output/spv/spv-light-decoder.c index 7b890a1f65..2cc7f63221 100644 --- a/src/output/spv/spv-light-decoder.c +++ b/src/output/spv/spv-light-decoder.c @@ -185,6 +185,7 @@ decode_spvlb_valign (uint32_t in, enum table_valign *valignp) return NULL; default: + *valignp = 0; return xasprintf ("bad cell style valign %"PRIu32, in); } }