[Bug 5] false warning: no return at end of function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 18 17:27:50 PST 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=5
------- Comment #3 from unknown at simplemachines.org 2006-03-18 19:27 -------
Created an attachment (id=5)
--> (http://d.puremagic.com/bugzilla/attachment.cgi?id=5&action=view)
Change CompoundStatement and TryFinallyStatement.
This patch:
1. Changes the behavior of CompoundStatement so that, if there is ever a child
statement which does fall off, it does not issue a "no return" warning.
2. Keeps the existing functionality of showing a "statement not reachable"
warning only once per early return.
3. Changes TryFinallyStatement so that the finally may fall off so long as the
try does not.
-[Unknown]
--
More information about the Digitalmars-d-bugs
mailing list