svn commit: samba r18649 - in branches/SAMBA_3_0/source: include lib/replace

metze at samba.org metze at samba.org
Mon Sep 18 23:26:14 GMT 2006


Author: metze
Date: 2006-09-18 23:26:14 +0000 (Mon, 18 Sep 2006)
New Revision: 18649

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18649

Log:
the PRINTF_ATTRIUTE() macro is provided by libreplace

metze

Modified:
   branches/SAMBA_3_0/source/include/includes.h
   branches/SAMBA_3_0/source/lib/replace/replace.h


Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===================================================================
--- branches/SAMBA_3_0/source/include/includes.h	2006-09-18 23:18:38 UTC (rev 18648)
+++ branches/SAMBA_3_0/source/include/includes.h	2006-09-18 23:26:14 UTC (rev 18649)
@@ -95,17 +95,6 @@
 #endif
 #endif
 
-
-#if (__GNUC__ >= 3 ) && (__GNUC_MINOR__ >= 1 )
-/** Use gcc attribute to check printf fns.  a1 is the 1-based index of
- * the parameter containing the format, and a2 the index of the first
- * argument. Note that some gcc 2.x versions don't handle this
- * properly **/
-#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
-#else
-#define PRINTF_ATTRIBUTE(a1, a2)
-#endif
-
 #if defined(__GNUC__) && !defined(__cplusplus)
 /** gcc attribute used on function parameters so that it does not emit
  * warnings about them being unused. **/

Modified: branches/SAMBA_3_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_3_0/source/lib/replace/replace.h	2006-09-18 23:18:38 UTC (rev 18648)
+++ branches/SAMBA_3_0/source/lib/replace/replace.h	2006-09-18 23:26:14 UTC (rev 18649)
@@ -207,7 +207,7 @@
 
 
 #ifndef PRINTF_ATTRIBUTE
-#if __GNUC__ >= 3
+#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
 /** Use gcc attribute to check printf fns.  a1 is the 1-based index of
  * the parameter containing the format, and a2 the index of the first
  * argument. Note that some gcc 2.x versions don't handle this



More information about the samba-cvs mailing list