https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92826

--- Comment #3 from kim.walisch at gmail dot com ---
> I thought the name "pedantic" made it clear that it is going to warn about 
> things that are just fine, and you shouldn't use it...

A large number of projects (including mine) run automated tests using "-Wall
-Wextra -Wpedantic -Werror" and treat warnings as errors. This is why I
currently don't enable __float128 by default in my projects.

Before C++11 "long long" used to be a non standard type and GCC would print
warnings when using "long long". However GCC had an option (-Wno-long-long) to
turn these warnings off . For me the current __float128 warnings are similar to
the -Wlong-long warnings and so there should also be an option to turn these
warnings off.

And by the way, here is the disgusting hack the boost math library uses to get
rid of this warning. (And I am not even sure it works because there are people
complaining about this warning from the boost mast library on stack-overflow.)

#if defined(__GNUC__) && defined(BOOST_MATH_USE_FLOAT128)
//
// This is the only way we can avoid
// warning: non-standard suffix on floating constant [-Wpedantic]
// when building with -Wall -pedantic.  Neither __extension__
// nor #pragma dianostic ignored work :(
//
#pragma GCC system_header
#endif

https://www.boost.org/doc/libs/develop/boost/math/special_functions/lambert_w.hpp

Reply via email to