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

Bug#811589: FTBFS with GCC 6: statement indented as if it were guarded by



Package: netcfg
Version: 1.135
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-misleading-indentation

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> cc -c -W -Wall -Werror -DNDEBUG -DNETCFG_VERSION="\"1.135\"" -I. -DWIRELESS -DNM -Os -fomit-frame-pointer   -o wpa.o wpa.c
> wpa.c: In function 'poll_wpa_supplicant':
> wpa.c:264:14: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>               if (debconf_progress_step(client, 1) == CMD_PROGRESSCANCELLED)
>               ^~
> 
> wpa.c:260:10: note: ...this 'if' clause, but it is not
>           if (debconf_progress_info(client, "netcfg/wpa_progress_note") ==
>           ^~
> 
> cc1: all warnings being treated as errors
> Makefile:60: recipe for target 'wpa.o' failed

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise


Reply to: