Adjust DEC/Compaq C compiler settings
authorYang Tse <yangsita@gmail.com>
Sat, 19 Jul 2008 11:27:45 +0000 (11:27 +0000)
committerYang Tse <yangsita@gmail.com>
Sat, 19 Jul 2008 11:27:45 +0000 (11:27 +0000)
configure.ac

index 2f7f6c9..fbcb851 100644 (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