summaryrefslogtreecommitdiff
path: root/debian/patches/0003-Ignore-unused-but-set-variables-and-params-Closes-62.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0003-Ignore-unused-but-set-variables-and-params-Closes-62.patch')
-rw-r--r--debian/patches/0003-Ignore-unused-but-set-variables-and-params-Closes-62.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/0003-Ignore-unused-but-set-variables-and-params-Closes-62.patch b/debian/patches/0003-Ignore-unused-but-set-variables-and-params-Closes-62.patch
new file mode 100644
index 0000000..a8514b3
--- /dev/null
+++ b/debian/patches/0003-Ignore-unused-but-set-variables-and-params-Closes-62.patch
@@ -0,0 +1,23 @@
+From: Antonin Kral <a.kral@bobek.cz>
+Date: Wed, 14 Sep 2011 17:26:58 +0200
+Subject: Ignore unused but set variables and params (Closes: #625401)
+
+---
+ SConstruct | 3 ++-
+ 1 files changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/SConstruct b/SConstruct
+index b36d82f..fcd9c70 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -692,7 +692,8 @@ if nix:
+ # env.Append( " -Wconversion" ) TODO: this doesn't really work yet
+ if linux:
+ env.Append( CPPFLAGS=" -Werror " )
+- if not has_option('clang'):
++ env.Append( CPPFLAGS=" -Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter " ) # ignore new gcc 4.6 warnings
++ if not has_option('clang'):
+ env.Append( CPPFLAGS=" -fno-builtin-memcmp " ) # glibc's memcmp is faster than gcc's
+
+ env.Append( CPPDEFINES="_FILE_OFFSET_BITS=64" )
+--