]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
configure: Add -fno-builtin-strftime flag with gcc to avoid warning.
authorTimo Sirainen <tss@iki.fi>
Wed, 11 Jan 2012 08:31:25 +0000 (10:31 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 11 Jan 2012 08:31:25 +0000 (10:31 +0200)
configure.in

index 7249b3b103e71f038f871fdc58034030a8208979..7391c2b9e6668e431e92b02fec6b5ece49d31102 100644 (file)
@@ -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