From: Andrew Tridgell Date: Wed, 13 Jul 2005 10:22:13 +0000 (+0000) Subject: r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build X-Git-Tag: samba-misc-tags/initial-v4-0-unstable~8190 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=117d2fa31d3a7e0b37c09979aa41243c564c0385;p=samba.git r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build --- diff --git a/source/extra_cflags.txt b/source/extra_cflags.txt index a2dbd554036..0a8495e115a 100644 --- a/source/extra_cflags.txt +++ b/source/extra_cflags.txt @@ -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 diff --git a/source/lib/replace/replace.h b/source/lib/replace/replace.h index c7c343ef383..b67e629aa0d 100644 --- a/source/lib/replace/replace.h +++ b/source/lib/replace/replace.h @@ -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