-
Notifications
You must be signed in to change notification settings - Fork 78
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
Implicit fallthrough #12
Comments
Hello @r-barnes, The example you show is definitely a fallthrough case, I haven't checked any others but it would want to made certain before adding an attribute, which probably requires a test suite. However, in general, this repository is attempting to be reference copy of AGG v2.6 with regards to AGG internals (except for serious bug fixes, since the master repo isn't on GitHub) so we probably don't want to add Thank you! |
@ghaerr - The In the much larger codebase that I found agg-2.6 integrated into we found quite a high bug rate associated with implicit fallthroughs (I'm working on getting the numbers on that), so enabling this protection was definitely a win for us. If you have internal code that this is interfacing with, enabling |
There are fixes in revision 140 and 141 for this issue: |
Compiling the code with clang's
-Wimplicit-fallthrough
reveals ~5 cases where fallthroughs are not explicitly marked (example). Are these bugs wherebreak
should have been used or are they intentional? If they are intentional, can they be marked with[[fallthrough]]
?agg-2.6/agg-src/include/agg_conv_adaptor_vcgen.h
Line 102 in c4f36b4
The text was updated successfully, but these errors were encountered: