From 7e184f72c6cce493a773b7b96e4dd31d980e399c Mon Sep 17 00:00:00 2001 From: MouriNaruto Date: Sun, 23 Jun 2024 17:33:35 +0800 Subject: [PATCH] Continue to follow partial suggestions from mingkuang. --- src/Shared/hstring_private.h | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/Shared/hstring_private.h b/src/Shared/hstring_private.h index d306953..4da0039 100644 --- a/src/Shared/hstring_private.h +++ b/src/Shared/hstring_private.h @@ -51,13 +51,6 @@ namespace YY::Thunks::internal } HSTRING_HEADER_INTERNAL, *PHSTRING_HEADER_INTERNAL; static_assert(sizeof(HSTRING_HEADER) == sizeof(HSTRING_HEADER_INTERNAL)); -#ifdef _MSC_VER -#if (_MSC_VER >= 1200) -#pragma warning(push) -#endif -#pragma warning(disable:4200) // zero length array -#endif - /* * @brief The internal structure of heap allocated Windows Runtime String. */ @@ -65,16 +58,8 @@ namespace YY::Thunks::internal { HSTRING_HEADER_INTERNAL Header; volatile INT RefCount; - WCHAR String[0]; + WCHAR String[ANYSIZE_ARRAY]; } STRING_OPAQUE, *PSTRING_OPAQUE; - -#ifdef _MSC_VER -#if (_MSC_VER >= 1200) -#pragma warning(pop) -#else -#pragma warning(default:4200) // zero length array -#endif -#endif } #endif // !YY_THUNKS_HSTRING_PRIVATE