On Thu, 23 Feb 2006, William Killian wrote: > But, how does the compiler know that? How does it know that it can > appropriately not generate any entrance and exit code? Because you > wrote the function like that? Yes. Just like any other construct, I expect the compiler to interpret it the way I wrote it. > What if that is an error and you would > have wanted a warning about 'non reachable code' or 'function does not > exit'. I don't want that warning, but if I did, I would tell my compiler vendor I think a necessary warning is missing from their compiler. But I'm more interested in having the compiler not generate dead code than having it generate superfluous warnings on standard constructs. -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist