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

Bug#996848: bs1770gain FTBFS: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]



Source: bs1770gain
Version: 0.8.3-2
Severity: serious
Tags: ftbfs

bs1770gain fails to build from source (probably due to gcc-11). A
non-parallel build now ends as follows:

| gcc -DHAVE_CONFIG_H -I. -I..  -I../libpbutil -I../libff -I../lib1770-2 -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include  -Wstrict-prototypes -Wextra -Wreturn-type -Wcast-qual -Wcast-align -Wpointer-arith -Wformat -Wall -Werror -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o bg_analyzer.o bg_analyzer.c
| bg_analyzer.c: In function ‘bg_analyzer_album_suffix’:
| bg_analyzer.c:435:11: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
|   435 |           if (&bg_print_xml_vmt==param->print.vmt)
|       |           ^~
| In file included from ../libpbutil/pbutil_priv.h:22,
|                  from ./bg.h:43,
|                  from bg_analyzer.c:22:
| ../libpbutil/pbutil.h:107:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
|   107 | #define _FPRINTFV(f,format,...) fprintf(f,format,__VA_ARGS__)
|       |                                 ^~~~~~~
| bg_analyzer.c:437:13: note: in expansion of macro ‘_FPRINTFV’
|   437 |             _FPRINTFV(stdout,"\"%" PBU_PRIs "\"",tree->source.path);
|       |             ^~~~~~~~~
| cc1: all warnings being treated as errors
| make[4]: *** [Makefile:516: bg_analyzer.o] Error 1
| make[4]: Leaving directory '/<<PKGBUILDDIR>>/libbg'
| make[3]: *** [Makefile:372: all] Error 2
| make[3]: Leaving directory '/<<PKGBUILDDIR>>/libbg'
| make[2]: *** [Makefile:390: all-recursive] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| make[1]: *** [Makefile:331: all] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: error: make -j1 returned exit code 2
| make: *** [debian/rules:7: binary] Error 25
| dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

Helmut


Reply to: