Skip to content

Commit 52c28b8

Browse files
committed
8253239: Disable VS warning C4307
Reviewed-by: mdoerr, erikj
1 parent 05572e8 commit 52c28b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make/autoconf/flags-cflags.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ AC_DEFUN([FLAGS_SETUP_WARNINGS],
134134
135135
WARNINGS_ENABLE_ALL="-W3"
136136
DISABLED_WARNINGS="4800"
137+
if test "x$TOOLCHAIN_VERSION" = x2017; then
138+
# VS2017 incorrectly triggers this warning for constexpr
139+
DISABLED_WARNINGS+=" 4307"
140+
fi
137141
;;
138142
139143
gcc)

0 commit comments

Comments
 (0)