(maintonly considered a PITA)
Matthias Klose <doko@debian.org> (2015-02-12):
> cc -c -W -Wall -Werror -DNDEBUG -DNETCFG_VERSION="\"1.127\"" -DNETCFG_BUILD_DATE="\"20150207-1035\"" -I. -DWIRELESS -DNM -Os -fomit-frame-pointer -o netcfg-common.o netcfg-common.c
> netcfg-common.c: In function 'netcfg_detect_link':
> netcfg-common.c:1520:5: error: 'link_waits' may be used uninitialized in this function [-Werror=maybe-uninitialized]
> for (count = 0; count < link_waits; count++) {
> ^
> cc1: all warnings being treated as errors
Funny that gcc complains here and not in the di_info() and
debconf_progress_start() calls a few lines before. From a
cursory glance at the code (I'm no compiler), it looks like
we only exit the while loop when ok has been set to non-0,
which only happens at the same time link_waits is set.
So I don't think gcc has detected a real issue here.
Mraw,
KiBi.
Attachment:
signature.asc
Description: Digital signature