[python-escript] 01/01: Suppress spurious warning on 32bit builds

Joel Fenwick jfenwick-guest at moszumanska.debian.org
Mon Dec 4 02:39:21 UTC 2017


This is an automated email from the git hooks/post-receive script.

jfenwick-guest pushed a commit to branch debian
in repository python-escript.

commit 419c8e9104838c78b6bb176c96ab7ce99a026db3
Author: Joel Fenwick <joelfenwick at uq.edu.au>
Date:   Mon Dec 4 12:38:05 2017 +1000

    Suppress spurious warning on 32bit builds
---
 debian/patches/32bitboostextract | 21 +++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 22 insertions(+)

diff --git a/debian/patches/32bitboostextract b/debian/patches/32bitboostextract
new file mode 100644
index 0000000..2845b87
--- /dev/null
+++ b/debian/patches/32bitboostextract
@@ -0,0 +1,21 @@
+Suppress maybe unitialized warnings for 32bit builds _only_.
+Current g++ is reporting boost::python::extract<double> as using
+possibly unitialised memory.
+--- a/scons/templates/sid_options.py
++++ b/scons/templates/sid_options.py
+@@ -18,6 +18,7 @@
+ # Refer to README_FIRST for usage instructions.
+ 
+ escript_opts_version = 203
++cxx_extra = ''          #To allow string addition later
+ #cxx_extra = '-Wno-literal-suffix'
+ openmp = True
+ #mpi = 'OPENMPI'
+@@ -76,3 +77,7 @@ for i in debstuff:
+   except NameError:   
+     exec(k+"='"+v+"'")
+ 
++import platform
++if platform.architecture()[0] == '32bit':
++    cxx_extra += '-Wno-maybe-uninitialized '
++
diff --git a/debian/patches/series b/debian/patches/series
index cb4003a..717a27d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
 manspelling
 fixmathjax
 fixsphinxversion
+32bitboostextract

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-escript.git



More information about the debian-science-commits mailing list