зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1124033 - Replace blanket disabling of VS2015 warnings with C5026 and C5027; r=ehsan
Wv:18 was added in bug 1119072 as a quick way to get the tree building with VS2015. Now that we're closer to rolling out VS2015 support, we want to expose its new warnings. This patch replaces the blanket disabling of new warnings in VS2015 with just disabling C5026 and C5027, which relate to symbols being implicitly defined as deleted. MozReview-Commit-ID: 8uniydfNJns --HG-- extra : rebase_source : 5ca239cd20216e89115d1faeffc036b6eecb85ca
This commit is contained in:
Родитель
6a9168778b
Коммит
449929f5a5
|
@ -292,10 +292,11 @@ case "$target" in
|
|||
MSVC_C_RUNTIME_DLL=vcruntime140.dll
|
||||
MSVC_CXX_RUNTIME_DLL=msvcp140.dll
|
||||
|
||||
# -Wv:18 disables all warnings introduced after VS2013
|
||||
# See http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
|
||||
CFLAGS="$CFLAGS -Wv:18"
|
||||
CXXFLAGS="$CXXFLAGS -Wv:18"
|
||||
# C5026: move constructor was implicitly defined as deleted
|
||||
CXXFLAGS="$CXXFLAGS -wd5026"
|
||||
|
||||
# C5027: move assignment operator was implicitly defined as deleted
|
||||
CXXFLAGS="$CXXFLAGS -wd5027"
|
||||
|
||||
# -Zc:sizedDealloc- disables C++14 global sized deallocation (see bug 1160146)
|
||||
CXXFLAGS="$CXXFLAGS -Zc:sizedDealloc-"
|
||||
|
|
|
@ -440,10 +440,11 @@ case "$target" in
|
|||
AC_DEFINE(MSVC_HAS_DIA_SDK)
|
||||
fi
|
||||
|
||||
# -Wv:18 disables all warnings introduced after VS2013
|
||||
# See http://blogs.msdn.com/b/vcblog/archive/2014/11/12/improvements-to-warnings-in-the-c-compiler.aspx
|
||||
CFLAGS="$CFLAGS -Wv:18"
|
||||
CXXFLAGS="$CXXFLAGS -Wv:18"
|
||||
# C5026: move constructor was implicitly defined as deleted
|
||||
CXXFLAGS="$CXXFLAGS -wd5026"
|
||||
|
||||
# C5027: move assignment operator was implicitly defined as deleted
|
||||
CXXFLAGS="$CXXFLAGS -wd5027"
|
||||
|
||||
# -Zc:sizedDealloc- disables C++14 global sized deallocation (see bug 1160146)
|
||||
CXXFLAGS="$CXXFLAGS -Zc:sizedDealloc-"
|
||||
|
|
Загрузка…
Ссылка в новой задаче