From: Ben Pfaff Date: Sun, 13 Mar 2022 18:30:49 +0000 (-0700) Subject: spv-light-decoder: Avoid GCC 11.x warning in decode_spvlb_halign(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=ad12fe8de0fefac092b30bd0853df5a247898d44 spv-light-decoder: Avoid GCC 11.x warning in decode_spvlb_halign(). 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 f1f3dba960..f8c4f618b2 100644 --- a/src/output/spv/spv-light-decoder.c +++ b/src/output/spv/spv-light-decoder.c @@ -170,6 +170,7 @@ decode_spvlb_halign (uint32_t in, enum table_halign *halignp) return NULL; default: + *halignp = 0; return xasprintf ("bad cell style halign %"PRIu32, in); } }