Re: [coldfire-gnu-discuss] 4.3-43 toolchain for mcf547x warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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