From 9982dd01302c263922bf2bbca8ddcbf88966cc34 Mon Sep 17 00:00:00 2001 From: Alex Alabuzhev Date: Thu, 9 Nov 2017 00:14:10 +0000 Subject: [PATCH] Fix for warning C5030 in VS2015 --- fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fmt/format.h b/fmt/format.h index 7748bfac..5966a2d0 100644 --- a/fmt/format.h +++ b/fmt/format.h @@ -157,7 +157,7 @@ typedef __int64 intmax_t; # define FMT_HAS_CXX17_ATTRIBUTE_MAYBE_UNUSED // VC++ 1910 support /std: option and that will set _MSVC_LANG macro // Clang with Microsoft CodeGen doesn't define _MSVC_LANG macro -#elif defined(_MSVC_LANG) && _MSVC_LANG > 201402 +#elif defined(_MSVC_LANG) && _MSVC_LANG > 201402 && _MSC_VER >= 1910 # define FMT_HAS_CXX17_ATTRIBUTE_MAYBE_UNUSED #endif