This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
No printf-format checking for snprintf & friends?
- From: Martin Buck <martin dot buck at ascom dot ch>
- To: ecos-discuss at sources dot redhat dot com
- Date: Tue, 23 Apr 2002 10:20:27 +0200
- Subject: [ECOS] No printf-format checking for snprintf & friends?
- Newsgroups: local.ecos.discuss
- Organization: Ascom Systec AG
Hi,
is there any particular reason why the eCos libc doesn't enable gcc's
printf-format checking for functions like snprintf()? AFAIK, gcc does
this by default for ISO-C functions, but not for the non-ISO stuff, so
stdio.h would have to specify __attribute__ ((__format ... )) for them.
Anybody interested in a patch?
Thanks,
Martin
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss