Re: error: format string argument not a string type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kalle Olavi Niemitalo <kon@xxxxxx> 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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux