File: no-Werror.patch

package info (click to toggle)
gltron 0.70final-14
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 4,992 kB
  • sloc: ansic: 19,172; sh: 3,004; cpp: 973; makefile: 209
file content (27 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Markus Koschany <apo@debian.org>
Date: Sun, 9 Dec 2018 14:30:34 +0100
Subject: no Werror

Remove -Werror flag and do not treat warnings as errors anymore. This is a
useful development flag but will cause a FTBFS whenever GCC becomes more
strict.

Bug-Debian: https://bugs.debian.org/897760
Forwarded: no
---
 configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.in b/configure.in
index 86af0cb..82e5a4e 100644
--- a/configure.in
+++ b/configure.in
@@ -23,7 +23,7 @@ AC_ARG_ENABLE(warn,
 AC_HELP_STRING([--enable-warn],[Enable compiler warnings @<:@default=on@:>@]),
 	enable_warn=$enableval, enable_warn=yes)
 if test "x$enable_warn" = xyes; then
-	CFLAGS="$CFLAGS -Wall -Werror"
+	CFLAGS="$CFLAGS -Wall"
 fi
 
 AC_ARG_ENABLE(debug,