From: Nicholas Nethercote Date: Thu, 21 May 2009 04:10:38 +0000 (+0000) Subject: Merge r10071 (VALGRIND_INTERNAL_PRINTF fix) from the DARWIN branch. X-Git-Tag: svn/VALGRIND_3_5_0~628 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2623cfad8dc4e5e04a53db8f22736f59d9ea505;p=thirdparty%2Fvalgrind.git Merge r10071 (VALGRIND_INTERNAL_PRINTF fix) from the DARWIN branch. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10072 --- diff --git a/coregrind/pub_core_clreq.h b/coregrind/pub_core_clreq.h index 179dc0ca3e..563904bdfe 100644 --- a/coregrind/pub_core_clreq.h +++ b/coregrind/pub_core_clreq.h @@ -56,10 +56,9 @@ typedef // sim'd CPU. Must be a function rather than macros so that va_list can // be used. -int VALGRIND_INTERNAL_PRINTF(char *format, ...); -__attribute__((format(__printf__, 1, 2))) -__attribute__((weak)) -int VALGRIND_INTERNAL_PRINTF(char *format, ...) +static int VALGRIND_INTERNAL_PRINTF(const char *format, ...) + __attribute__((format(__printf__, 1, 2), __unused__)); +static int VALGRIND_INTERNAL_PRINTF(const char *format, ...) { unsigned long _qzz_res = 0; va_list vargs;