unreachable code lint warnings #1563
jcurtiss8086
started this conversation in
General
Replies: 2 comments 3 replies
-
|
No, "unreachable" means identifying code like the following: There are already warnings for unused variables and typedefs. Adding another for functions and tasks would not be hard. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have the following options enabled: -Werror=unused-typedef But they don't appear to flag unused variables/typedefs within packages, or for unused class member-variables. Unused typedefs defined within classes does get flagged though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To help with identifying and cleaning up dead-code, here are a few items I would love to see lint warnings for.
packages:
classes:
There is an 'unreachable code' item listed in the current issue that tracks the implementation of lint warnings. Would that item cover all of the above?
Beta Was this translation helpful? Give feedback.
All reactions