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 28 29
|
Description: bitboostextract
Suppress maybe unitialized warnings for 32bit builds _only_.
Current g++ is reporting boost::python::extract<double> as using
possibly unitialised memory.
Index: python-escript-5.6/scons/templates/sid_options.py
===================================================================
--- python-escript-5.6.orig/scons/templates/sid_options.py
+++ python-escript-5.6/scons/templates/sid_options.py
@@ -19,6 +19,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'
@@ -79,4 +80,11 @@ for i in debstuff:
except NameError:
exec(k+"='"+v+"'")
-mathjax_path='/usr/share/javascript/mathjax/MathJax.js'
+import platform
+if platform.architecture()[0] == '32bit':
+ cxx_extra += ' -Wno-maybe-uninitialized '
+
+if platform.machine() in ('ppc', 'ppc64', 'ppc64le', 's390x'):
+ cxx_extra += ' -Wno-strict-overflow -Wno-error=strict-overflow '
+
+mathjax_path='file:///usr/share/javascript/mathjax/MathJax.js'
|