fix warnings
This commit is contained in:
parent
468aa9b76a
commit
d81b86e469
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
constexpr std::size_t StrLen(const char* str, std::size_t size = 0) {
|
||||||
#if !defined(_MSC_VER) && __cplusplus >= 201703L
|
#if !defined(_MSC_VER) && __cplusplus >= 201703L
|
||||||
return size, std::char_traits<char>::length(str);
|
static_cast<void>(size);
|
||||||
|
return std::char_traits<char>::length(str);
|
||||||
#elif defined(NAMEOF_HAS_CONSTEXPR14)
|
#elif defined(NAMEOF_HAS_CONSTEXPR14)
|
||||||
for (; str != nullptr; ++size) {
|
for (; str != nullptr; ++size) {
|
||||||
if (str[size] == '\0') {
|
if (str[size] == '\0') {
|
||||||
|
|
Loading…
Reference in a new issue