-
Notifications
You must be signed in to change notification settings - Fork 138
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
Warnings & Errors in various configurations #1037
Comments
Thanks for sharing. Most of these warnings are from Eigen or asio, but I did spot one potential under-read issue for glaze flags, which I'll look into. Could you point me to the cases of the sporadic error in Glaze also runs CI on a bunch of platforms and configurations under its GitHub Actions. But, your CI tests show that I should probably also be build testing with the |
So, I've tried multiple times to fix the MSVC warning for Yeah, |
What is the oldest Clang version you support? |
And just since I had them pop up right now (I build with
|
Clang 15 should build. I run actions with 16, 17, & 18 |
Unreachable code is annoying to deal with in Glaze because it often means needing to duplicate code (because of so many |
You could probably just be explicit with |
Yeah, Glaze uses a bit of This is typically a problem with constexpr conditional tail/end behavior. |
Ok I see. Well, I'll just disable that warning ( |
I'll take another look at whether I should refactor the code or just locally disable the warning. Thanks for pointing these out. |
While we're at it with MSVC (unless you already saw this warning): |
Yeah, I saw those. Working on them now. |
To explain a bit more why avoiding unreachable is a challenge: This is a problem that requires deterministic and non-allocating exception support in C++. There have been proposals to improve exception handling in C++, but I think the broader community needs to see this as more of a critical issue. |
I just merged in #1039, which removes most the warnings across the compilers. |
Since I'm maintaining the
build2
package ofglaze
I just ran it through the (free) CI servers and figured I'll let you know which has warnings & which has errors (in case you'd rather just tackle them in one go).See build status here for
v2.6.8
.Edit.
Obviously you can ignore the warnings coming from
Eigen
headers.I should also mention that there appears to be a sporadic error in the
jsonrpc_test
on Windows (unless it's something wrong specifically with mybuild2
package).The text was updated successfully, but these errors were encountered: