From a35a99bb449195a06d67d5b4952d6a0ba40e9f68 Mon Sep 17 00:00:00 2001 From: Anton Karpov Date: Wed, 5 Aug 2026 06:25:43 +0300 Subject: [PATCH] Clear the four -Wdocumentation warnings lambert_w: \param -term has a hyphen where the parameter is _term, so Doxygen looks for a parameter that does not exist and leaves _term undocumented. find_scale and hyperexponential: three comments start with the character sequence //< or /*<, which the compiler reads as a Doxygen trailing comment marker. Both are accidents, one in commented-out debug output and one in the /**/ note on a namespace. A space is enough. --- include/boost/math/distributions/find_scale.hpp | 4 ++-- include/boost/math/distributions/hyperexponential.hpp | 2 +- include/boost/math/special_functions/lambert_w.hpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/math/distributions/find_scale.hpp b/include/boost/math/distributions/find_scale.hpp index cd08ce95a2..c0af028a9f 100644 --- a/include/boost/math/distributions/find_scale.hpp +++ b/include/boost/math/distributions/find_scale.hpp @@ -60,8 +60,8 @@ namespace boost } //cout << "z " << z << ", p " << p << ", quantile(Dist(), p) " - //<< quantile(Dist(), p) << ", z - mean " << z - location - //<<", sd " << (z - location) / quantile(Dist(), p) << endl; + // << quantile(Dist(), p) << ", z - mean " << z - location + // <<", sd " << (z - location) / quantile(Dist(), p) << endl; //quantile(N01, 0.001) -3.09023 //quantile(N01, 0.01) -2.32635 diff --git a/include/boost/math/distributions/hyperexponential.hpp b/include/boost/math/distributions/hyperexponential.hpp index 49f967d0fa..fd64440d44 100644 --- a/include/boost/math/distributions/hyperexponential.hpp +++ b/include/boost/math/distributions/hyperexponential.hpp @@ -54,7 +54,7 @@ template class hyperexponential_distribution; -namespace /**/ { namespace hyperexp_detail { +namespace /* */ { namespace hyperexp_detail { template void normalize(std::vector& v) diff --git a/include/boost/math/special_functions/lambert_w.hpp b/include/boost/math/special_functions/lambert_w.hpp index 671432c679..47ef828858 100644 --- a/include/boost/math/special_functions/lambert_w.hpp +++ b/include/boost/math/special_functions/lambert_w.hpp @@ -778,7 +778,7 @@ struct lambert_w0_small_z_series_term { using result_type = T; //! \param _z Lambert W argument z. - //! \param -term -pow<18>(z) / 6402373705728000uLL + //! \param _term -pow<18>(z) / 6402373705728000uLL //! \param _k number of terms == initially 18 // Note *after* evaluating N terms, its internal state has k = N and term = (-1)^N z^N.