Re: error: format string argument not a string type

Ian Lance Taylor <[email protected]> Tue, 17 Mar 2009 06:52:36 -0700
Newsgroups gmane.comp.gcc.help,gmane.comp.web.links
Message-ID <[email protected]>
Kalle Olavi Niemitalo <[email protected]> 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