From 892e5de27d2f275e2d7c2160d81fe9e0c87b1ee1 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 19 Oct 2009 13:53:33 -0400 Subject: bemoan that _stp_*printf can't be protected with gcc attribute printf --- runtime/string.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/string.c') diff --git a/runtime/string.c b/runtime/string.c index cdafbf64..b3f81f0e 100644 --- a/runtime/string.c +++ b/runtime/string.c @@ -21,7 +21,11 @@ */ /** Sprintf into a string. - * Like printf, except output goes into a string. + * Like printf, except output goes into a string. + * + * NB: these are script language printf formatting directives, where + * %d ints are 64-bits etc, so we can't use gcc level attribute printf + * to type-check the arguments. * * @param str string * @param fmt A printf-style format string followed by a -- cgit