From d81b86e469c7677ac79932b120007f25298af039 Mon Sep 17 00:00:00 2001 From: Neargye Date: Fri, 31 Aug 2018 19:52:36 +0500 Subject: [PATCH] fix warnings --- include/nameof.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/nameof.hpp b/include/nameof.hpp index 15731d0..5bdee83 100644 --- a/include/nameof.hpp +++ b/include/nameof.hpp @@ -90,7 +90,8 @@ constexpr int StrCompare(const char* lhs, const char* rhs, std::size_t size) { constexpr std::size_t StrLen(const char* str, std::size_t size = 0) { #if !defined(_MSC_VER) && __cplusplus >= 201703L - return size, std::char_traits::length(str); + static_cast(size); + return std::char_traits::length(str); #elif defined(NAMEOF_HAS_CONSTEXPR14) for (; str != nullptr; ++size) { if (str[size] == '\0') {