r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build
authorAndrew Tridgell <tridge@samba.org>
Wed, 13 Jul 2005 10:22:13 +0000 (10:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:00 +0000 (13:23 -0500)
source/extra_cflags.txt
source/lib/replace/replace.h

index a2dbd554036b2c3671f8a85537c65e392a4a9827..0a8495e115a22125f086a2c7bf7c6463397fc525 100644 (file)
@@ -1 +1 @@
-heimdal -Iheimdal_build -Iheimdal/kdc -Iheimdal/lib/des -Iheimdal/lib/roken -Iheimdal/include
+heimdal -Iheimdal_build -Iheimdal/kdc -Iheimdal/lib/des -Iheimdal/lib/roken -Iheimdal/include -DNO_PRINTF_ATTRIBUTE
index c7c343ef38313f9f2d38e3ade66b27c915e61fdd..b67e629aa0dc3323cc869c2954c63c28c618ab35 100644 (file)
@@ -112,7 +112,7 @@ typedef int (*comparison_fn_t)(const void *, const void *);
 #endif
 
 #ifndef PRINTF_ATTRIBUTE
-#if (__GNUC__ >= 3)
+#if !defined(NO_PRINTF_ATTRIBUTE) && (__GNUC__ >= 3)
 /** 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