Remove some warnings in tests

This commit is contained in:
Krystian Stasiowski
2020-02-27 15:51:09 -05:00
parent 4a494ed9b5
commit 54c5d7cef4
4 changed files with 81 additions and 130 deletions

View File

@ -62,11 +62,13 @@
// Can we use [[nodiscard]]?
// KRYSTIAN TODO: these checks need to be improved
#if defined(__has_attribute) && __has_attribute(nodiscard)
#if defined(__has_attribute)
#if __has_attribute(nodiscard)
#define BOOST_STATIC_STRING_NODISCARD [[nodiscard]]
#else
#define BOOST_STATIC_STRING_NODISCARD
#endif
#endif
// _MSVC_LANG isn't avaliable until after VS2015
#if defined(_MSC_VER) && _MSC_VER < 1910L