This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: error: format string argument not a string type


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]