aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornegativeExponent2020-05-23 12:09:11 +0800
committernegativeExponent2020-05-23 12:09:11 +0800
commit4b7da20a2de9b8dcd266e2d69b13259cb364d451 (patch)
tree9cf1418956a3b5173355447b4be3c398d1ca345d /libpcsxcore
parentf4c902e02372bf11f6b1afcd26d22564276fe00a (diff)
downloadpcsx_rearmed-4b7da20a2de9b8dcd266e2d69b13259cb364d451.tar.gz
pcsx_rearmed-4b7da20a2de9b8dcd266e2d69b13259cb364d451.tar.bz2
pcsx_rearmed-4b7da20a2de9b8dcd266e2d69b13259cb364d451.zip
Silence some warnings
Silences some [-Wformat-truncation=] and [-Wstringop-truncation]
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/misc.c2
-rw-r--r--libpcsxcore/psxcounters.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index d877513..d42576c 100644
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -392,7 +392,7 @@ int CheckCdrom() {
}
if (CdromLabel[0] == ' ') {
- strncpy(CdromLabel, CdromId, 9);
+ memcpy(CdromLabel, CdromId, 9);
}
SysPrintf(_("CD-ROM Label: %.32s\n"), CdromLabel);
SysPrintf(_("CD-ROM ID: %.9s\n"), CdromId);
diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c
index 35823da..bebec87 100644
--- a/libpcsxcore/psxcounters.c
+++ b/libpcsxcore/psxcounters.c
@@ -64,7 +64,9 @@ static const u32 HSyncTotal[] = { 263, 313 };
#define VBlankStart 240
#define VERBOSE_LEVEL 0
+#if VERBOSE_LEVEL > 0
static const s32 VerboseLevel = VERBOSE_LEVEL;
+#endif
/******************************************************************************/