[Interest] "nodiscard" attribute
Andy
asmaloney at gmail.com
Mon Jul 10 03:51:48 CEST 2017
Thanks Thiago.
I eventually used -Wno-c++1z-extensions so I could get working again.
---
Andy Maloney // https://asmaloney.com
twitter ~ @asmaloney <https://twitter.com/asmaloney>
On Sun, Jul 9, 2017 at 2:50 PM, Thiago Macieira <thiago.macieira at intel.com>
wrote:
> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170709/975d0306/attachment.html>
More information about the Interest
mailing list