I'm getting this error while packaging for Android using UE 5.2:
UATHelper: Packaging (Android (ETC2)): D:/Projects/Poppy and Buddy 5.2/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonDataAsset.cpp(301,27): error: temporary whose address is used as value of local variable 'fromChar' will be destroyed at the end of the full-expression [-Werror,-Wdangling]
UATHelper: Packaging (Android (ETC2)): const char *fromChar = TCHAR_TO_UTF8(*data.From);
UATHelper: Packaging (Android (ETC2)): ^~~~~~~~~~~~~~~~~~~~~~~~~
UATHelper: Packaging (Android (ETC2)): D:/UE_5.2/Engine/Source/Runtime/Core/Public/Containers/StringConv.h(962,39): note: expanded from macro 'TCHAR_TO_UTF8'
UATHelper: Packaging (Android (ETC2)): #define TCHAR_TO_UTF8(str) (ANSICHAR*)FTCHARToUTF8((const TCHAR*)str).Get()
UATHelper: Packaging (Android (ETC2)): ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UATHelper: Packaging (Android (ETC2)): D:/Projects/Poppy and Buddy 5.2/Plugins/SpinePlugin/Source/SpinePlugin/Private/SpineSkeletonDataAsset.cpp(302,25): error: temporary whose address is used as value of local variable 'toChar' will be destroyed at the end of the full-expression [-Werror,-Wdangling]
UATHelper: Packaging (Android (ETC2)): const char *toChar = TCHAR_TO_UTF8(*data.To);
UATHelper: Packaging (Android (ETC2)): ^~~~~~~~~~~~~~~~~~~~~~~
UATHelper: Packaging (Android (ETC2)): D:/UE_5.2/Engine/Source/Runtime/Core/Public/Containers/StringConv.h(962,39): note: expanded from macro 'TCHAR_TO_UTF8'
UATHelper: Packaging (Android (ETC2)): #define TCHAR_TO_UTF8(str) (ANSICHAR*)FTCHARToUTF8((const TCHAR*)str).Get()
UATHelper: Packaging (Android (ETC2)): ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UATHelper: Packaging (Android (ETC2)): 2 errors generated.
PackagingResults: Error: temporary whose address is used as value of local variable 'fromChar' will be destroyed at the end of the full-expression [-Werror,-Wdangling]
PackagingResults: Error: temporary whose address is used as value of local variable 'toChar' will be destroyed at the end of the full-expression [-Werror,-Wdangling]
I'm on the latest commit of the 4.1 branch. Is this a known issue? Is there a fix?