1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Version 10.06.0 build on Debian armhf fails because of code that contains a declaration after a statement.
The code is functional but an error is emitted due to -Werror=declaration-after-statement, which this
patch removes.
--- ghostscript.orig/configure.ac
+++ ghostscript/configure.ac
@@ -342,7 +342,7 @@
if test x"$GCC" = x"yes"; then
cflags_to_try="-Wall -Wstrict-prototypes -Wundef \
-Wmissing-declarations -Wmissing-prototypes -Wwrite-strings \
--fno-strict-aliasing -Werror=declaration-after-statement \
+-fno-strict-aliasing \
-fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs $CFLAGS_LARGEFILE"
optflags_to_try="$CC_OPT_FLAGS_TO_TRY"
dbgflags_to_try="$CC_DBG_FLAGS_TO_TRY"
|