Silence warnings

This commit is contained in:
negativeExponent
2020-02-16 23:14:49 +08:00
parent 1eaed36344
commit a37314c4be
3 changed files with 5 additions and 5 deletions

View File

@@ -555,10 +555,10 @@ static void maketables(uint32 c, uint32 r) {
}
}
OPLL *OPLL_new(uint32 clk, uint32 rate) {
OPLL *OPLL_new(uint32 _clk, uint32 _rate) {
OPLL *opll;
maketables(clk, rate);
maketables(_clk, _rate);
opll = (OPLL*)calloc(sizeof(OPLL), 1);
if (opll == NULL)

View File

@@ -417,7 +417,7 @@ int FCEUI_SetCheat(uint32 which, const char *name, int32 a, int32 v, int compare
if (name) {
char *t;
if ((t = (char*)realloc(next->name, strlen(name + 1)))) {
if ((t = (char*)realloc(next->name, strlen(name) + 1))) {
next->name = t;
strcpy(next->name, name);
} else

View File

@@ -797,8 +797,8 @@ int UNIFLoad(const char *name, FCEUFILE *fp) {
if (UNIFCart.mapper)
FCEU_printf(" [Unif] Mapper: %d\n", UNIFCart.mapper);
FCEU_printf(" [Unif] SubMapper: %d\n", UNIFCart.submapper);
FCEU_printf(" [Unif] PRG ROM: %d KiB\n", UNIF_PRGROMSize >> 10);
FCEU_printf(" [Unif] CHR ROM: %d KiB\n", UNIF_CHRROMSize / 1024);
FCEU_printf(" [Unif] PRG ROM: %ull KiB\n", UNIF_PRGROMSize / 1024);
FCEU_printf(" [Unif] CHR ROM: %ull KiB\n", UNIF_CHRROMSize / 1024);
GameInterface = UNIFGI;
return 1;