Fix various compiler warnings given by Clang (#170)

This commit is contained in:
bitscher 2022-09-07 11:04:32 -07:00 committed by GitHub
parent 4d1be950e3
commit 4eaa600b57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 28 deletions

View file

@ -10,6 +10,8 @@
#include "Cafe/Filesystem/fsc.h"
#include "Cafe/HW/Espresso/PPCState.h"
#include <inttypes.h>
static_assert(sizeof(acpMetaXml_t) == 0x3440);
static_assert(offsetof(acpMetaXml_t, title_id) == 0x0000);
static_assert(offsetof(acpMetaXml_t, boss_id) == 0x0008);
@ -85,7 +87,7 @@ namespace iosu
return;
const char* text = subElement->GetText();
uint64 value;
if (sscanf(text, "%llx", &value) == 0)
if (sscanf(text, "%" SCNx64, &value) == 0)
return;
*v = _swapEndianU64(value);
}