From: Jonathan Wakely Date: Wed, 1 Oct 2025 12:48:18 +0000 (+0100) Subject: libstdc++: Fix -Wreorder warning in std::philox_engine X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af9532118c2c11b545700e74202b061396bb31c;p=thirdparty%2Fgcc.git libstdc++: Fix -Wreorder warning in std::philox_engine libstdc++-v3/ChangeLog: * include/bits/random.h (philox_engine(result_type)): Reorder ctor-initializer-list to match declaration order. --- diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h index 4049a77fbf4..ebc863e8453 100644 --- a/libstdc++-v3/include/bits/random.h +++ b/libstdc++-v3/include/bits/random.h @@ -1778,7 +1778,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION explicit philox_engine(result_type __value) - : _M_x{}, _M_y{}, _M_k{}, _M_i(__n - 1) + : _M_x{}, _M_k{}, _M_y{}, _M_i(__n - 1) { _M_k[0] = __value & max(); } /** @brief seed sequence constructor for %philox_engine