summaryrefslogtreecommitdiff
path: root/debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch
diff options
context:
space:
mode:
authorAntonin Kral <a.kral@bobek.cz>2012-05-10 07:00:59 +0200
committerAntonin Kral <a.kral@bobek.cz>2012-05-10 07:00:59 +0200
commit36ec56f187952adb3f0a424273b1b0eec4c58e31 (patch)
treedae349ae5eae0479b2c22602c2a9fe6a2e416735 /debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch
parent8813daaab256108f7aa6300875e8562d031f2c2f (diff)
downloadmongodb-36ec56f187952adb3f0a424273b1b0eec4c58e31.tar.gz
Regenarate patches for 2.0.5
Diffstat (limited to 'debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch')
-rw-r--r--debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch b/debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch
new file mode 100644
index 0000000..76a8cf1
--- /dev/null
+++ b/debian/patches/0002-Ignore-unused-but-set-variables-and-params-Closes-62.patch
@@ -0,0 +1,22 @@
+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 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/SConstruct b/SConstruct
+index 02813ea..86518ff 100644
+--- a/SConstruct
++++ b/SConstruct
+@@ -704,7 +704,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" )