mirror of
https://github.com/LumaTeam/Luma3DS.git
synced 2026-02-22 01:44:38 +00:00
loader: fix nonstring warnings
This commit is contained in:
parent
5f848124c4
commit
8a6b766894
@ -34,6 +34,12 @@
|
||||
|
||||
extern bool isN3DS;
|
||||
|
||||
// Note: just switch to [[attribute]] once we use clangd and cmake
|
||||
// vscode-cpptools has (or had?) some issues with C23 support
|
||||
#if __GNUC__ >= 15
|
||||
// Required by GCC 15+ but ignored (with warning) before
|
||||
__attribute__((nonstring))
|
||||
#endif
|
||||
static const char serviceList[34][8] =
|
||||
{
|
||||
"APT:U",
|
||||
|
||||
@ -478,7 +478,7 @@ static inline bool loadTitleLocaleConfig(u64 progId, u8 *mask, u8 *regionId, u8
|
||||
if(R_FAILED(IFile_GetSize(&file, &fileSize)) || fileSize < 3) goto exit;
|
||||
if(fileSize >= 12) fileSize = 12;
|
||||
|
||||
char buf[12] = "------------";
|
||||
char buf[12+1] = "------------";
|
||||
u64 total;
|
||||
|
||||
if(R_FAILED(IFile_Read(&file, &total, buf, fileSize))) goto exit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user