aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5654a4959..c07052a56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -303,6 +303,12 @@ if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
dnl On Linux this compiler uses gcc's header files, so
dnl we select ANSI C89 dialect plus GNU extensions.
CPPFLAGS="$CPPFLAGS -std=gnu89"
+ if test "$curl_cv_def___INTEL_COMPILER" -gt "600"; then
+ dnl Show errors, warnings, and remarks
+ CPPFLAGS="$CPPFLAGS -Wall"
+ dnl Perform extra compile-time code checking
+ CPPFLAGS="$CPPFLAGS -Wcheck"
+ fi
dnl Change some warnings into errors
dnl #140: too many arguments in function call
dnl #147: declaration is incompatible with 'previous one'