This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: h8300: less optimal (buggy?) compiler output with last build


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]