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

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



Using the 4.3-43 toolchain, I'm not getting the "too many arguments"
warning when I compile the following sample code:

 

#include <stdio.h>

static const char test[] = "%d";

 

int main() {

  int a = 0;

  int b = 1;

  printf (test, a, b);

  return 1;

}

 

But the warning does work if I use a string literal inside the printf...
such as "printf ("%d", a, b);".

 

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?

 

Thanks,

 

Ken Wong

Product Developer, Software, Business Products

CHRISTIE

809 Wellington Street North

Kitchener, Ontario N2G 4Y7

PH: +1 519-744-8005 Ext. 7177

FX: +1 519-749-3164

www.christiedigital.com <http://www.christiedigital.com> 

 

This e-mail message (including attachments, if any) is confidential.

Any unauthorized use, distribution or disclosure is prohibited.

If you have received this e-mail message in error, please notify 

the sender by reply e-mail or telephone and delete it and any 

attachments from your computer system and records.