Package: modemmanager
Version: 1.4.12-1
Severity: important
User: debian-...@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
...
> gcc -DHAVE_CONFIG_H -I. -I../..  -pthread -I/usr/include/gio-unix-2.0/ 
> -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include 
> -I../../libqcdm/src -I../../src -Wdate-time -D_FORTIFY_SOURCE=2  -Wall 
> -Werror -std=gnu89 -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -Wmissing-declarations -Wmissing-prototypes 
> -Wdeclaration-after-statement -Wno-unused-parameter -Wno-sign-compare 
> -fno-strict-aliasing -Wno-deprecated-declarations 
> -Wno-unused-but-set-variable -Wformat-security -c -o test_qcdm-test-qcdm.o 
> `test -f 'test-qcdm.c' || echo './'`test-qcdm.c
> test-qcdm.c: In function 'test_data_new':
> test-qcdm.c:46:2: error: statement is indented as if it were guarded by... 
> [-Werror=misleading-indentation]
>   return d;
>   ^~~~~~
> 
> test-qcdm.c:43:5: note: ...this 'if' clause, but it is not
>      if (port)
>      ^~
> 
> test-qcdm.c: In function 'test_data_free':
> test-qcdm.c:55:2: error: statement is indented as if it were guarded by... 
> [-Werror=misleading-indentation]
>   g_free (d);
>   ^~~~~~
> 
> test-qcdm.c:52:5: note: ...this 'if' clause, but it is not
>      if (d->com_data)
>      ^~
> 
> cc1: all warnings being treated as errors
> Makefile:672: recipe for target 'test_qcdm-test-qcdm.o' failed
> make[4]: *** [test_qcdm-test-qcdm.o] Error 1

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

Reply via email to