-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Compiler warnings? #372
Comments
Attached is the full set of warnings I get. Clang sadly does not tell you the compiler flags to set to ignore the warnings in some cases. |
Thanks for reporting. I had a look at the warnings:
These warnings look odd... |
Yes I noticed that 2 and 3 were warnings about unused things that are actually used. I'm assuming this is probably some clang flakiness. One of these can be ignored with the flag -Wno-unused-local-typedef. If I can find flags for the other two I'll post them here. |
FYI XCode 7.2 uses Clang 7.0.2. |
Yes, that could be the problem. I'm stuck on 7.2 since this is for a CUDA project and the nvidia toolkit is not compatible with the latest Xcode. |
This really seems to be a quirk of the Clang version: Apple LLVM version 8.0.0 (clang-800.0.42.1) compiles without warning when called with |
Ok then it's just me! Thanks for checking that out. We can close the issue. Other than the warnings the package is working great, it's exactly what I needed. |
Hi, When I include json.hpp I get many compiler warnings like
//usr/local/include/nlohmann/json.hpp(3006): warning: type qualifier is meaningless on cast type
Is there a way to suppress these? I'm on OS X with Xcode 7.2 (stuck on that version for other reasons).
Thanks,
Dave
The text was updated successfully, but these errors were encountered: