|
From: <sv...@va...> - 2007-10-04 21:35:26
|
Author: dirk
Date: 2007-10-04 22:35:21 +0100 (Thu, 04 Oct 2007)
New Revision: 6947
Log:
revert format checking warnings from trunk, will
be done in a branch
Modified:
trunk/include/pub_tool_libcprint.h
Modified: trunk/include/pub_tool_libcprint.h
===================================================================
--- trunk/include/pub_tool_libcprint.h 2007-10-04 21:34:06 UTC (rev 6946)
+++ trunk/include/pub_tool_libcprint.h 2007-10-04 21:35:21 UTC (rev 6947)
@@ -35,26 +35,19 @@
Basic printing
------------------------------------------------------------------ */
-#ifdef __GNUC__
-# define PRINTF_CHECK(x,y) __attribute__((format(__printf__, x, y)))
-#else
-# define PRINTF_CHECK(x,y) /* x, y */
-#endif
-
/* Note that they all output to the file descriptor given by the
* --log-fd/--log-file/--log-socket argument, which defaults to 2 (stderr).
* Hence no need for VG_(fprintf)().
*/
-
-extern UInt VG_(printf) ( const HChar *format, ... ) PRINTF_CHECK(1,2);
+extern UInt VG_(printf) ( const HChar *format, ... );
extern UInt VG_(vprintf) ( const HChar *format, va_list vargs );
/* too noisy ... __attribute__ ((format (printf, 1, 2))) ; */
-extern UInt VG_(sprintf) ( Char* buf, const HChar* format, ... ) PRINTF_CHECK(2,3);
+extern UInt VG_(sprintf) ( Char* buf, const HChar* format, ... );
extern UInt VG_(vsprintf) ( Char* buf, const HChar* format, va_list vargs );
extern UInt VG_(snprintf) ( Char* buf, Int size,
- const HChar *format, ... ) PRINTF_CHECK(3,4);
+ const HChar *format, ... );
extern UInt VG_(vsnprintf)( Char* buf, Int size,
const HChar *format, va_list vargs );
|