aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/curl-compilers.m410
1 files changed, 9 insertions, 1 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4
index dcd96ed54..3c87efa09 100644
--- a/m4/curl-compilers.m4
+++ b/m4/curl-compilers.m4
@@ -903,7 +903,15 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [
#
dnl Only clang 3.2 or later
if test "$compiler_num" -ge "302"; then
- tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
+ case $host_os in
+ cygwin* | mingw*)
+ dnl skip missing-variable-declarations warnings for cygwin and
+ dnl mingw because the libtool wrapper executable causes them
+ ;;
+ *)
+ tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
+ ;;
+ esac
fi
#
dnl Only clang 3.6 or later