]> xenbits.xensource.com Git - xen.git/commit
bunzip: work around gcc13 warning
authorJan Beulich <jbeulich@suse.com>
Tue, 14 Mar 2023 09:45:28 +0000 (10:45 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 14 Mar 2023 09:45:28 +0000 (10:45 +0100)
commit402195e56de0aacf97e05c80ed367d464ca6938b
tree98555e3ebdcb26c66e8020a16fa4772b612652a6
parente6e92adf47bf50a9e944efdc123f0bc2e3cb0790
bunzip: work around gcc13 warning

While provable that length[0] is always initialized (because symCount
cannot be zero), upcoming gcc13 fails to recognize this and warns about
the unconditional use of the value immediately following the loop.

See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106511.

Reported-by: Martin Liška <martin.liska@suse.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/bunzip2.c