Adjust DEC/Compaq C compiler settings

This commit is contained in:
Yang Tse 2008-07-19 11:27:45 +00:00
parent ac6d6ec2f1
commit 3f84e373ac
2 changed files with 8 additions and 4 deletions

View File

@ -239,10 +239,12 @@ if test "$curl_cv_have_def___DECC" = "yes" ||
AC_MSG_RESULT([yes])
dnl Select strict ANSI C compiler mode
CFLAGS="$CFLAGS -std1"
dnl Generate verbose messages for errors and warnings
CFLAGS="$CFLAGS -verbose"
dnl Generate warnings for missing function prototypes
CFLAGS="$CFLAGS -warnprotos"
dnl Select highest warning level
CFLAGS="$CFLAGS -msg_enable level6"
dnl Change some warnings into fatal errors
CFLAGS="$CFLAGS -msg_fatal toofewargs,toomanyargs"
else
AC_MSG_RESULT([no])
fi

View File

@ -306,10 +306,12 @@ if test "$curl_cv_have_def___DECC" = "yes" ||
AC_MSG_RESULT([yes])
dnl Select strict ANSI C compiler mode
CFLAGS="$CFLAGS -std1"
dnl Generate verbose messages for errors and warnings
CFLAGS="$CFLAGS -verbose"
dnl Generate warnings for missing function prototypes
CFLAGS="$CFLAGS -warnprotos"
dnl Select highest warning level
CFLAGS="$CFLAGS -msg_enable level6"
dnl Change some warnings into fatal errors
CFLAGS="$CFLAGS -msg_fatal toofewargs,toomanyargs"
else
AC_MSG_RESULT([no])
fi