and make int/ptr mixups a fatal error that will be noticed at build or
"make check" time. Tested in a 32-bit build.
ticket: 6297
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21325
dc483132-0cff-0310-8789-
dd5450dbe970
;;
esac
fi
+ if test "`uname -s`" = SunOS ; then
+ # Using Solaris but not GCC, assume Sunsoft compiler.
+ # We have some error-out-on-warning options available.
+ # Sunsoft 12 compiler defaults to -xc99=all, it appears, so "inline"
+ # works, but it also means that declaration-in-code warnings won't
+ # be issued.
+ # -v -fd -errwarn=E_DECLARATION_IN_CODE ...
+ WARN_CFLAGS="-errtags=yes -errwarn=E_BAD_PTR_INT_COMBINATION"
+ WARN_CXXFLAGS="-errtags=yes +w +w2 -xport64"
+ fi
fi
AC_SUBST(WARN_CFLAGS)
AC_SUBST(WARN_CXXFLAGS)