From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Lehotsky To: ralf.guetlein@biotest-mt.de Cc: kazu@hxi.com, gcc@gcc.gnu.org, gnuh8@pcserv.demon.co.uk Subject: Re: h8300: less optimal (buggy?) compiler output with last build Date: Wed, 16 Aug 2000 09:24:00 -0000 Message-id: <200008161618.MAA19230@sunspot.tiac.net> References: <000a01c0079b$129edba0$650b0d0a@Alzenau> X-SW-Source: 2000-08/msg00340.html what happens if you change your inline to be... inline void Watchdog() { TCW = 0; } so the front-end doesn't think it needs to return a value of the last expression executed ? [Which I thought it should be warning about 1/ function without a return type (implicit int) 2/ value-returning function not returning a value IIRC, these are BOTH C++ errors and -WALL warnings for C. -- Al Lehotsky