Skip to content
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

Make "Unreachable code?" a warning instead of a fatal error. #21

Open
supercom32 opened this issue Jan 20, 2018 · 0 comments
Open

Make "Unreachable code?" a warning instead of a fatal error. #21

supercom32 opened this issue Jan 20, 2018 · 0 comments

Comments

@supercom32
Copy link
Collaborator

Enhancement found using Dragon Basic commit ID d2ce042

When working with code, it is quite common to block off a section of code for debug purposes. However, if you do something like "Return 0", DBC is smart enough to detect that unreachable code has been found. It would be nice if DBC would log this as a warning instead of a fatal error, since it is a pain to manually comment out multiple lines of code, or find strange ways to fool the compiler into letting you get away with it.

@supercom32 supercom32 changed the title (Enhancement) Make "Unreachable code?" a warning instead of a fatal error. Make "Unreachable code?" a warning instead of a fatal error. Jan 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant