[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#983868: gsequencer ftbfs with -Werror=maybe-uninitialized



Package: src:gsequencer
Version: 3.7.38-1
Severity: important
Tags: sid bullseye
X-Debbugs-CC: Joël Krähemann <jkraehemann@gmail.com>

gsequencer ftbfs with -Werror=maybe-uninitialized, with gcc-10 and gcc-11 from
experimental.

ags/audio/midi/ags_midi_buffer_util.c:2606:17: error: ‘current_delta_time’ may
be used uninitialized in this function [-Werror=maybe-uninitialized]
 2606 |     *delta_time = current_delta_time;
      |     ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

You don't see the error in a build log, because the libtool output is redirected
to /dev/null.

Forwarded to https://gcc.gnu.org/PR99340

The warning is only seen with -fPIE, not -fPIC, which is a bug in GCC.

The warning itself is correct, ags_midi_buffer_util_get_varlength doesn't always
return a value in varlength.


Reply to: