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

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



Package: ifhp
Version: 3.5.20-13
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
...
> make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
> gcc -g -W -Wall -Werror -Wno-unused  -g -Wno-unused-parameter -g -W -Wall -Werror -Wno-unused  -DHAVE_CONFIG_H -I. -I.. -I.  -DIFHP_CONF=\"/etc/ifhp.conf\" -DLOCALEDIR=\"/usr/share/locale\"   -c -o ifhp.o ifhp.c
> ifhp.c: In function 'Process_job':
> ifhp.c:1348:35: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>    if( tempfd > 0 ) close(tempfd); tempfd = -1;
>                                    ^~~~~~
> 
> ifhp.c:1348:3: note: ...this 'if' clause, but it is not
>    if( tempfd > 0 ) close(tempfd); tempfd = -1;
>    ^~
> 
> ifhp.c: In function 'Pjl_setvar':
> ifhp.c:3382:36: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>      if( working ) free( working ); working = 0;
>                                     ^~~~~~~
> 
> ifhp.c:3382:5: note: ...this 'if' clause, but it is not
>      if( working ) free( working ); working = 0;
>      ^~
> 
> ifhp.c: In function 'Do_sync':
> ifhp.c:3677:35: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>   if( use_prog ) free( use_prog ); use_prog = 0;
>                                    ^~~~~~~~
> 
> ifhp.c:3677:2: note: ...this 'if' clause, but it is not
>   if( use_prog ) free( use_prog ); use_prog = 0;
>   ^~
> 
> ifhp.c: In function 'Do_waitend':
> ifhp.c:4003:35: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>   if( use_prog ) free( use_prog ); use_prog = 0;
>                                    ^~~~~~~~
> 
> ifhp.c:4003:2: note: ...this 'if' clause, but it is not
>   if( use_prog ) free( use_prog ); use_prog = 0;
>   ^~
> 
> ifhp.c: In function 'Send_job':
> ifhp.c:4657:36: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>    if( tempfd != 0 ) close(tempfd); tempfd = -1;
>                                     ^~~~~~
> 
> ifhp.c:4657:3: note: ...this 'if' clause, but it is not
>    if( tempfd != 0 ) close(tempfd); tempfd = -1;
>    ^~
> 
> ifhp.c: In function 'Make_stdin_file':
> ifhp.c:5098:28: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>    if( fd != 0 ) close(fd); fd = -1;
>                             ^~
> 
> ifhp.c:5098:3: note: ...this 'if' clause, but it is not
>    if( fd != 0 ) close(fd); fd = -1;
>    ^~
> 
> ifhp.c: In function 'Select_model_info':
> ifhp.c:5764:31: error: statement is indented as if it were guarded by... [-Werror=misleading-indentation]
>   if( hash ) FREE_OBJ( hash ); hash = 0;
>                                ^~~~
> 
> ifhp.c:5764:2: note: ...this 'if' clause, but it is not
>   if( hash ) FREE_OBJ( hash ); hash = 0;
>   ^~
> 
> cc1: all warnings being treated as errors
> <builtin>: recipe for target 'ifhp.o' failed

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


Reply to: