Package: libqmi
Version: 1.12.6-1
Severity: important
User: [email protected]
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../.. 
> -I../../src/libqmi-glib -I../../src/libqmi-glib/generated 
> -I../../src/libqmi-glib -I../../src/libqmi-glib/generated -Wdate-time 
> -D_FORTIFY_SOURCE=2  -Wall -std=gnu89 -g -O2 -fstack-protector-strong 
> -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes 
> -Wdeclaration-after-statement -Wstrict-prototypes -fno-strict-aliasing 
> -Wno-deprecated-declarations -Wint-to-pointer-cast -Wfloat-equal 
> -Wno-unused-parameter -Wno-sign-compare -Wunused-but-set-variable -Wundef 
> -Wimplicit-function-declaration -Wpointer-arith -Winit-self -Wshadow 
> -Wmissing-include-dirs -Waggregate-return -Wformat-security -Werror -c -o 
> qmicli-qmicli-helpers.o `test -f 'qmicli-helpers.c' || echo 
> './'`qmicli-helpers.c
> qmicli-helpers.c: In function 'qmicli_get_raw_data_printable':
> qmicli-helpers.c:52:2: error: statement is indented as if it were guarded 
> by... [-Werror=misleading-indentation]
>   new_str_length =  3 * data->len;
>   ^~~~~~~~~~~~~~
> 
> qmicli-helpers.c:44:5: note: ...this 'if' clause, but it is not
>      if (!data)
>      ^~
> 
> cc1: all warnings being treated as errors
> Makefile:531: recipe for target 'qmicli-qmicli-helpers.o' failed

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

Reply via email to