microsoft / GSL

Guidelines Support Library
Other
6.13k stars 737 forks source link

Suppress false postive warning #1068

Closed dmitrykobets-msft closed 1 year ago

dmitrykobets-msft commented 1 year ago

The Clang compiler for MSVC in Visual Studio 2022 17.4.33122.133 used by the test runner has a bug which raises -Wdeprecated "out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated" in gsl/span, when compiling with C++14. Temporarily suppress this warning for MSVC Clang with C++14.