-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodiscard attribute is used for clang 3.9.1 when used via HEDLEY_WARN_UNUSED_RESULT but shouldn't #40
Comments
My hack is not correct. clang 4.0.0, see https://travis-ci.org/github/nlohmann/json/jobs/705709985, does also break. |
I can reproduce it now with pure hedley:
The |
This also adds -Wc++1z-extensions to the CPP98_COMPAT_WRAP macro in case we do output [[nodiscard]] in C++17 or below mode. Fixes #40
This also adds -Wc++1z-extensions to the CPP98_COMPAT_WRAP macro in case we do output [[nodiscard]] in C++17 or below mode. Fixes #40
This also adds -Wc++1z-extensions to the CPP98_COMPAT_WRAP macro in case we do output [[nodiscard]] in C++17 or below mode. Fixes #40
Thanks, sorry it took me so long to get to this. It's a bit annoying that clang will emit a warning when using I've reorganized the I also added I'm planning to put out a new release soon, this will be included. |
This also adds -Wc++1z-extensions to the CPP98_COMPAT_WRAP macro in case we do output [[nodiscard]] in C++17 or below mode. Fixes #40
We are seeing a build failure 1, 2 in nlohmann/json with the latest hedley version.
The message is
I've tried reproducing it with pure hedley but failed.
Hacking it to work is pretty easy
but I'm not understanding the issue well enough to propose that hack as a PR.
Any ideas?
The text was updated successfully, but these errors were encountered: