From e2ef08f1296c00d196da805d7977b599ee41e8a4 Mon Sep 17 00:00:00 2001 From: skypjack Date: Thu, 29 May 2025 17:45:10 +0200 Subject: [PATCH] clang-tidy: suppress ok-ish warning --- src/entt/core/hashed_string.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entt/core/hashed_string.hpp b/src/entt/core/hashed_string.hpp index 6a6f13db7..08e97e6f8 100644 --- a/src/entt/core/hashed_string.hpp +++ b/src/entt/core/hashed_string.hpp @@ -133,6 +133,7 @@ public: template // NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays) ENTT_CONSTEVAL basic_hashed_string(const value_type (&str)[N]) noexcept + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-array-to-pointer-decay) : base_type{str} { for(; str[base_type::length]; ++base_type::length) { base_type::hash = (base_type::hash ^ static_cast(str[base_type::length])) * params::prime;