printf format strings to fix warnings
Ralf Corsepius
ralf.corsepius at rtems.org
Tue Oct 8 05:56:26 UTC 2013
On 09/23/2013 11:57 PM, Joel Sherrill wrote:
> Hi
>
> There are only a handful of printf format warnings currently.
>
> 2 warning: format '%lc' expects argument of type 'wint_t', but
> argument 4 has type 'wchar_t' [-Wformat=]
>
Can you provide a reproducer? Which targets?
This kind of warnings indicate a type mismatch between gcc's internal
types and newlib.
Where and how to address this kind of warnings is close to impossible
without knowing the target, because the origin can either be in newlib
or in GCC.
Ralf
More information about the devel
mailing list