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

2016-07-05 Thread Mike Gerow
fixed 811575 2:3.23-1
thanks

Actually this should be fixed in the pull from upstream 2:3.23-1, and I
can confirm that building with GCC 6 now appears to succeed.

-- 
Mike Gerow
ge...@mgerow.com


signature.asc
Description: PGP signature


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

2016-07-05 Thread Mike Gerow
This appears to have been fixed upstream with a clang-format run:

changeset:   11862:313155f1077b
user:Franziskus Kiefer 
date:Fri Feb 05 22:53:48 2016 +0100
summary: Bug 1244135 - NSS clang-format: lib/dbm, r=kaie

I'll see if I can pull a reasonably sized patch out of that.

-- 
Mike Gerow
ge...@mgerow.com


signature.asc
Description: PGP signature


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

2016-01-19 Thread Martin Michlmayr
Package: nss
Version: 2:3.21-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 -o OBJS/h_page.o -c -g -O2 -fstack-protector-strong -Wformat 
> -Werror=format-security -Wall -pipe -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
> -DLINUX2_1 -m64 -Wall -Werror -pipe -ffunction-sections -fdata-sections 
> -DHAVE_STRERROR -DLINUX -Dlinux -DXP_UNIX -UDEBUG -DNDEBUG -D_REENTRANT 
> -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT 
> -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DSTDC_HEADERS -DHAVE_STRERROR 
> -DHAVE_SNPRINTF -DMEMMOVE -D__DBINTERFACE_PRIVATE -I/usr/include/nspr 
> -I/<>/dist/include -I/<>/dist/public/dbm 
> -I/<>/dist/private/dbm  h_page.c
> h_page.c: In function 'new_lseek':
> h_page.c:120:3: error: statement is indented as if it were guarded by... 
> [-Werror=misleading-indentation]
>cur_pos = lseek(fd, 0, SEEK_CUR);
>^~~
> 
> h_page.c:117:8: note: ...this 'if' clause, but it is not
> if(offset < 1)
> ^~
> 
> cc1: all warnings being treated as errors

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