diff --git a/boost/UnpackedTarball_boost.mk b/boost/UnpackedTarball_boost.mk index 3f78005f38c2..a353b033403d 100644 --- a/boost/UnpackedTarball_boost.mk +++ b/boost/UnpackedTarball_boost.mk @@ -46,6 +46,7 @@ boost_patches += boost.wunused.patch boost_patches += boost.wshadow.patch boost_patches += boost.wconstexpr-not-const.patch.0 boost_patches += boost.wdeprecated-register.patch.0 +boost_patches += boost.wuninitialized.patch $(eval $(call gb_UnpackedTarball_UnpackedTarball,boost)) diff --git a/boost/boost.wuninitialized.patch b/boost/boost.wuninitialized.patch new file mode 100644 index 000000000000..1b6384e3e7fa --- /dev/null +++ b/boost/boost.wuninitialized.patch @@ -0,0 +1,10 @@ +--- foo/foo/foo/boost/random/binomial_distribution.hpp ++++ foo/foo/foo/boost/random/binomial_distribution.hpp +@@ -278,6 +278,7 @@ + m = static_cast((t_lcl+1)*p_lcl); + + if(use_inversion()) { ++ btrd.r = btrd.nr = btrd.npq = btrd.b = btrd.a = btrd.c = btrd.alpha = btrd.v_r = btrd.u_rv_r = 0; + q_n = pow((1 - p_lcl), static_cast(t_lcl)); + } else { + btrd.r = p_lcl/(1-p_lcl);