From b6c10f0493a3818b7e16d18aa9392c4641032914 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 8 Sep 2025 10:11:00 -0700 Subject: [PATCH] Del redundant-static-def in executorch/schema/extended_header.cpp +2 (#13875) Summary: LLVM has a warning `-Wdeprecated-redundant-constexpr-static-def` which raises the warning: > warning: out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated Since we are now on C++20, we can remove the out-of-line definition of constexpr static data members. This diff does so. - If you approve of this diff, please use the "Accept & Ship" button :-) Differential Revision: D81359733 --- schema/extended_header.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/schema/extended_header.cpp b/schema/extended_header.cpp index 3236b040c49..3ccf122524a 100644 --- a/schema/extended_header.cpp +++ b/schema/extended_header.cpp @@ -91,8 +91,5 @@ uint64_t GetUInt64LE(const uint8_t* data) { }; } -// Define storage for the static. -constexpr char ExtendedHeader::kMagic[kMagicSize]; - } // namespace runtime } // namespace executorch