From 52c28b869293c8639228ff32ec8f8615955fe39d Mon Sep 17 00:00:00 2001 From: Matthias Baesken Date: Fri, 18 Sep 2020 14:06:29 +0000 Subject: [PATCH] 8253239: Disable VS warning C4307 Reviewed-by: mdoerr, erikj --- make/autoconf/flags-cflags.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make/autoconf/flags-cflags.m4 b/make/autoconf/flags-cflags.m4 index 64f9883d52e..15df47434c0 100644 --- a/make/autoconf/flags-cflags.m4 +++ b/make/autoconf/flags-cflags.m4 @@ -134,6 +134,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS], WARNINGS_ENABLE_ALL="-W3" DISABLED_WARNINGS="4800" + if test "x$TOOLCHAIN_VERSION" = x2017; then + # VS2017 incorrectly triggers this warning for constexpr + DISABLED_WARNINGS+=" 4307" + fi ;; gcc)