Date: Thu, 18 Jul 2002 02:46:51 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 14416 for review Message-ID: <200207180946.g6I9kpPR018008@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14416 Change 14416 by peter@peter_ia64 on 2002/07/18 02:45:50 -ffreestanding turns off gcc's "knowledge" of printf etc. explicitly tag it as __printflike() so we can check args. Affected files ... .. //depot/projects/ia64/lib/libstand/stand.h#8 edit Differences ... ==== //depot/projects/ia64/lib/libstand/stand.h#8 (text+ko) ==== @@ -244,9 +244,9 @@ struct disklabel; extern char *getdisklabel(const char *, struct disklabel *); -extern int printf(const char *fmt, ...); +extern int printf(const char *fmt, ...) __printflike(1, 2); extern void vprintf(const char *fmt, _BSD_VA_LIST_); -extern int sprintf(char *buf, const char *cfmt, ...); +extern int sprintf(char *buf, const char *cfmt, ...) __printflike(2, 3); extern void vsprintf(char *buf, const char *cfmt, _BSD_VA_LIST_); extern void twiddle(void); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207180946.g6I9kpPR018008>