Warning messages

Karl Heuer karl at haddock.ima.isc.com
Tue Jan 23 07:52:07 AEST 1990


In article <15102 at bfmny0.UU.NET> tneff at bfmny0.UU.NET (Tom Neff) writes:
>In article <15673 at haddock.ima.isc.com> karl at haddock (Karl Heuer) writes:
|>If you say that the solution is to use |return| instead of |exit()|, I can't
|>accept that.  Both are correct, the arguments for one are about as good as
|>for the other, and it's not the sort of thing that the compiler should try
|>to enforce.
|
|Just use both.  It executes the way you want, and parses the way C wants.

Then I would be inviting the compiler to complain about unreachable code.
Remember, I've configured it to know that |exit()| is nonreturning.

Karl W. Z. Heuer (karl at haddock.isc.com or ima!haddock!karl), The Walking Lint



More information about the Comp.lang.c mailing list