error: format string argument not a string type

Ian Lance Taylor iant@google.com
Tue Mar 17 13:53:00 GMT 2009


Kalle Olavi Niemitalo <kon@iki.fi> writes:

> If I change the unsigned char * to char *, then this error goes
> away.  But is there any other way to make GCC check the format
> arguments without this error?

Not without changing your source code.

Perhaps you could use a varargs macro to cast the pointer to the
required type.

Ian



More information about the Gcc-help mailing list