From 88bb0c7a90d9f00981587120788eaae393f7f0bb Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 15 Jul 2003 14:23:15 +0000 Subject: [PATCH] * aclocal.m4 (extra_gcc_warn_opts): Don't turn on -pedantic on Darwin git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15688 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 5 +++++ src/aclocal.m4 | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index ff98aee5f..0f2d6ed31 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-07-15 Ken Raeburn + + * aclocal.m4 (extra_gcc_warn_opts): Don't turn on -pedantic on + Darwin. + 2003-05-27 Ken Raeburn * Makefile.in (KRBHDEP): Add krb524_err header. diff --git a/src/aclocal.m4 b/src/aclocal.m4 index 142deee47..ba783d9f3 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -456,13 +456,18 @@ AC_SUBST(HAVE_GCC) # maybe add -Waggregate-return, or can we assume that actually works by now? # -Wno-comment is for SunOS system header extra_gcc_warn_opts="-Wall -Wmissing-prototypes -Wcast-qual \ - -Wcast-align -Wconversion -Wshadow -Wno-comment -pedantic" + -Wcast-align -Wconversion -Wshadow -Wno-comment" if test "$GCC" = yes ; then if test "x$krb5_ac_cflags_set" = xset ; then AC_MSG_NOTICE(not adding extra gcc warning flags because CFLAGS was set) else AC_MSG_NOTICE(adding extra warning flags for gcc) CFLAGS="$CFLAGS $extra_gcc_warn_opts" + if test "`uname -s`" = Darwin ; then + AC_MSG_NOTICE(skipping pedantic warnings on Darwin) + else + CFLAGS="$CFLAGS -pedantic" + fi fi fi ])dnl -- 2.26.2