printf format strings to fix warnings
Rempel, Cynthia
cynt6007 at vandals.uidaho.edu
Tue Sep 24 22:31:28 UTC 2013
Hi,
There is a change needed in one of the rtems specific integer headers (inttypes.h, stdint.h, or the like) in newlib...
I don't recall the name of the header, but remember the copyright on the header is Ralf Corsepius...
it's fixed in the Linux version, but not the rtems version...
I would suppose making the rtems header match the linux version could solve the problem... but I'm not a newlib expert...
Thanks,
Cindy
________________________________________
From: rtems-devel-bounces at rtems.org [rtems-devel-bounces at rtems.org] on behalf of Joel Sherrill [joel.sherrill at OARcorp.com]
Sent: Monday, September 23, 2013 2:57 PM
To: rtems-devel at rtems.org
Subject: printf format strings to fix warnings
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=]
4 warning: format '%lo' expects argument of type 'long unsigned
int', but argument 3 has type 'mode_t' [-Wformat=]
2 warning: format '%lo' expects argument of type 'long unsigned
int', but argument 6 has type 'mode_t' [-Wformat=]
2 warning: format '%lx' expects argument of type 'long unsigned
int', but argument 3 has type 'blkcnt_t' [-Wformat=]
2 warning: format '%lx' expects argument of type 'long unsigned
int', but argument 3 has type 'blksize_t' [-Wformat=]
22 warning: format '%lx' expects argument of type 'long unsigned
int', but argument 3 has type 'pthread_t' [-Wformat=]
9 warning: format '%lx' expects argument of type 'long unsigned
int', but argument 4 has type 'pthread_t' [-Wformat=]
Any suggestions on how to address each class with a specific
inttyps.h type macro?
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
_______________________________________________
rtems-devel mailing list
rtems-devel at rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel
More information about the devel
mailing list