diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-08 14:48:45 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-08 23:16:16 +0200 |
commit | f8548e84adc4cc55c274beb23690b8a5f5b827bf (patch) | |
tree | 0c48c858662657a83a186f4b7ff56f2fb28cb143 /m4 | |
parent | 261da2a6685c0185283dbf72ce543e9fd81e9bd8 (diff) | |
download | curl-f8548e84adc4cc55c274beb23690b8a5f5b827bf.tar.gz |
configure: use -Wno-varargs on clang 3.9[.X] debug builds
... to avoid a clang bug
Diffstat (limited to 'm4')
-rw-r--r-- | m4/curl-compilers.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/curl-compilers.m4 b/m4/curl-compilers.m4 index 7705e637f..422946e26 100644 --- a/m4/curl-compilers.m4 +++ b/m4/curl-compilers.m4 @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -922,6 +922,11 @@ AC_DEFUN([CURL_SET_COMPILER_WARNING_OPTS], [ dnl Only clang 3.9 or later if test "$compiler_num" -ge "309"; then tmp_CFLAGS="$tmp_CFLAGS -Wcomma" + # avoid the varargs warning, fixed in 4.0 + # https://bugs.llvm.org/show_bug.cgi?id=29140 + if test "$compiler_num" -lt "400"; then + tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs" + fi fi fi ;; |