From 81e7981c76f72c497fc78b666442416296b6c987 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Wed, 21 Oct 2020 01:12:34 -0400 Subject: [PATCH] CMemoryCardSys: Fix GCC nonstring --- Runtime/CMemoryCardSys.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Runtime/CMemoryCardSys.cpp b/Runtime/CMemoryCardSys.cpp index c0b57895b..bd7453df1 100644 --- a/Runtime/CMemoryCardSys.cpp +++ b/Runtime/CMemoryCardSys.cpp @@ -198,6 +198,9 @@ void CMemoryCardSys::CCardFileInfo::BuildCardBuffer() { CMemoryOutStream w(x104_cardBuffer.data(), x104_cardBuffer.size()); w.writeUint32Big(0); +#if __GNUC__ && !__clang__ + __attribute__((nonstring)) +#endif char comment[64]; strncpy(comment, x28_comment.data(), 64); w.writeBytes(comment, 64);