If I compile the following code (SDCC 2.7.0): ------------------------------------------------ void func(void) { int timeout;
return; timeout = 0xFFFF; while (timeout--); } ------------------------------------------------ SDCC produces the following warnings: "src/test.c:8: warning 84: 'auto' variable 'timeout' may be used before initialization src/test.c:8: warning 84: 'auto' variable 'timeout' may be used before initialization src/test.c:8: warning 84: 'auto' variable 'timeout' may be used before initialization" Any idea why? And before someone says "Don't call 'return' there!" - this scenario happens when a macro is set to "return" to eliminate the 2nd half of a function. Thanks, Mary-Ann -- Mary-Ann Johnson, Development Engineer, DisplayLink (UK) Limited Tel: +44 (0)1223 443920 | DDI: +44 (0)1223 443971 | Fax: +44 (0)1223 443921 E: [EMAIL PROTECTED] | W: http://www.displaylink.com/ DisplayLink (UK) Limited - Registered in England No. 04811048 Mount Pleasant House, Mount Pleasant, Cambridge, CB3 0RN, United Kingdom. DisplayLink Corp. - a US incorporated company. 480 S. California Avenue Ste 304, Palo Alto, CA 94306, USA. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user