summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/includes.h11
-rw-r--r--source3/lib/replace/replace.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 892087b701..601d9b94d6 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -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. **/
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 7cdaaae689..688f08a51d 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -207,7 +207,7 @@ int rep_dlclose(void *handle);
#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