From: Timo Sirainen Date: Wed, 11 Jan 2012 08:31:25 +0000 (+0200) Subject: configure: Add -fno-builtin-strftime flag with gcc to avoid warning. X-Git-Tag: 2.1.rc4~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=967561920ed885ca34d878b284f5259eb50528fa;p=thirdparty%2Fdovecot%2Fcore.git configure: Add -fno-builtin-strftime flag with gcc to avoid warning. --- diff --git a/configure.in b/configure.in index 7249b3b103..7391c2b9e6 100644 --- a/configure.in +++ b/configure.in @@ -301,6 +301,9 @@ if test "x$ac_cv_c_compiler_gnu" = "xyes"; then # -Wmissing-format-attribute -Wmissing-noreturn -Wwrite-strings # a couple of warnings CFLAGS="$CFLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast" + # This is simply to avoid warning when building strftime() wrappers.. + CFLAGS="$CFLAGS -fno-builtin-strftime" + AC_TRY_COMPILE([ #if __GNUC__ < 4 # error old gcc