File: 1006_remove_error_declaration_after_statement.patch

package info (click to toggle)
ghostscript 10.06.0~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 96,296 kB
  • sloc: ansic: 944,438; python: 7,917; cpp: 6,534; cs: 6,457; sh: 6,168; java: 4,028; perl: 2,373; tcl: 1,639; makefile: 538; awk: 66; yacc: 18
file content (15 lines) | stat: -rw-r--r-- 723 bytes parent folder | download
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"