[coldfire-gnu-discuss] 4.3-43 toolchain for mcf547x warnings

Maxim Kuvyrkov maxim at codesourcery.com
Thu May 28 07:00:42 UTC 2009


Wong, Ken wrote:

...

> I’ve tried the same code on the x86 gnu toolchain 3.4.6 successfully.  
> Is there a flag that I’m forgetting to set in order to get the warning, 
> or has the warning been removed from this version of the mcf547x 4.3-43 
> toolchain?

Hi Ken,

It works for me with -Wformat GCC option:

$ m68k-linux-gnu-gcc -c ./t.c -Wformat
./t.c: In function 'main':
./t.c:11: warning: too many arguments for format

Also, you may find -Wall option useful, it enables a variety of useful 
warnings.

--
Maxim
CodeSourcery



More information about the coldfire-gnu-discuss mailing list