From 6f26c4067f0bf51f223d07dd5db62a5aa5f037f1 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Mon, 1 Aug 2016 15:02:00 +0100 Subject: [PATCH] Default to AX_CFLAGS_WARN_ALL for the choice of compiler flags when we don't know the compiler. --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 63d2ddad06..bbe2945679 100644 --- a/configure.ac +++ b/configure.ac @@ -452,14 +452,17 @@ AC_ARG_ENABLE([compiler-warnings], if test "$enable_warn" != "no"; then # AX_CFLAGS_WARN_ALL does not give good warning flags for the Intel compiler - # We will do this by hand instead + # We will do this by hand instead and only default to the macro for unknown compilers case "$ax_cv_c_compiler_vendor" in gnu | clang) CFLAGS="$CFLAGS -Wall" ;; - intel ) + intel) CFLAGS="$CFLAGS -w2" ;; + *) + AX_CFLAGS_WARN_ALL + ;; esac # Add a "choke on warning" flag if it exists -- GitLab