Bug 1333939 - Remove -Wno-invalid-constexpr from clang-cl config. r=froydnj

The constexpr warning no longer appears in VS2015 headers.

I spot-checked a few other warnings in the list, and we still need to keep them.

Notably, we still need -Wno-ignored-attributes, but now for a different reason!

MozReview-Commit-ID: LMqJX1KlAra

--HG--
extra : rebase_source : c1ad696f19975a1252a9bf2b01771530183c6c14
This commit is contained in:
David Major 2017-01-26 13:26:01 +13:00
Родитель 314ef818ef
Коммит ce8f6a7e21
2 изменённых файлов: 4 добавлений и 18 удалений

Просмотреть файл

@ -736,11 +736,6 @@ case "$target" in
# We use offsetof on non-POD objects all the time.
# We also suppress this warning on other platforms.
CXXFLAGS="$CXXFLAGS -Wno-invalid-offsetof"
# MFBT thinks clang-cl supports constexpr, which it does, but
# not everything in Windows C++ headers supports constexpr
# as we might expect until MSVC 2015, so turn off this warning
# for now.
CXXFLAGS="$CXXFLAGS -Wno-invalid-constexpr"
# This warns for reasonable things like:
# enum { X = 0xffffffffU };
# which is annoying for IDL headers.
@ -787,10 +782,8 @@ case "$target" in
# At least one MSVC header and several headers in-tree have
# unused typedefs, so turn this on.
CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedef"
# Several JS engine header files use __declspec(dllimport) on
# classes, and clang-cl helpfully warns about its non-support
# for such cases. We're not particularly worried about that,
# so ignore that warning.
# jemalloc uses __declspec(allocator) as a profiler hint,
# which clang-cl doesn't understand.
CXXFLAGS="$CXXFLAGS -Wno-ignored-attributes"
fi
# make 'foo == bar;' error out

Просмотреть файл

@ -1045,11 +1045,6 @@ case "$target" in
# We use offsetof on non-POD objects all the time.
# We also suppress this warning on other platforms.
CXXFLAGS="$CXXFLAGS -Wno-invalid-offsetof"
# MFBT thinks clang-cl supports constexpr, which it does, but
# not everything in Windows C++ headers supports constexpr
# as we might expect until MSVC 2015, so turn off this warning
# for now.
CXXFLAGS="$CXXFLAGS -Wno-invalid-constexpr"
# This warns for reasonable things like:
# enum { X = 0xffffffffU };
# which is annoying for IDL headers.
@ -1096,10 +1091,8 @@ case "$target" in
# At least one MSVC header and several headers in-tree have
# unused typedefs, so turn this on.
CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedef"
# Several JS engine header files use __declspec(dllimport) on
# classes, and clang-cl helpfully warns about its non-support
# for such cases. We're not particularly worried about that,
# so ignore that warning.
# jemalloc uses __declspec(allocator) as a profiler hint,
# which clang-cl doesn't understand.
CXXFLAGS="$CXXFLAGS -Wno-ignored-attributes"
fi
# make 'foo == bar;' error out