-
Notifications
You must be signed in to change notification settings - Fork 434
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
Build with more aggressive compiler warnings #223
Comments
-Wshadow should be fixed in f1b3f6d |
@ericfischer - refreshed, recommended list is now available at mapbox/cpp#37 |
Thanks. Working on this in #489 |
Thanks @ericfischer |
@ericfischer great to see #489 land. Any progress on attempting |
That one is going to be terrible. There are hundreds of implicit type conversions. |
@ericfischer okay, then I recommend starting with a subset like:
I presume that will surface much fewer warnings, primarily from The whole After those are resolved I recommend one-by-one incrementally adding |
@ericfischer do you have thoughts on my proposed plan? |
I can certainly go through and add 571 type casts. I'm just not sure what the balance will turn out to be between:
which is always my anxiety around casts. I hope there will be more of the former than of the latter two though. |
The fundamental tension is that the language really wants array bounds and indices to be unsigned, for efficiency, but really wants ordinary arithmetic to be signed, for intuitive results. |
Trying to get more rigorous about numeric types in #506. Situations I've encountered so far that are stuck as
|
Excellent progress @ericfischer - I notice that branch fixes a number of the |
What remains now is a handful of |
upgrade catch from v1.5.7 to v2.13.10
My sense is we should start with enabling and fixing warnings in roughly this order:
The text was updated successfully, but these errors were encountered: