[Interest] "nodiscard" attribute
Thiago Macieira
thiago.macieira at intel.com
Sun Jul 9 20:50:05 CEST 2017
On sábado, 8 de julho de 2017 07:55:39 PDT Andy wrote:
> Is anyone else getting thousands of warnings about the "nodiscard"
> attribute?
>
> warning: use of the 'nodiscard' attribute is a C++1z extension
> [-Wc++1z-extensions]
Yes, it's a Clang bug. See https://bugs.llvm.org/show_bug.cgi?id=33518.
We're working with them to figure out what the proper solution should be. You
can work around this problem now by deleteing these lines from
qcompilerdetection.h:
#if QT_HAS_CPP_ATTRIBUTE(nodiscard) // P0188R1
# undef Q_REQUIRED_RESULT
# define Q_REQUIRED_RESULT [[nodiscard]]
#endif
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list