From 30ac4bdcb1efed3680f746fd8290f1aeb7a6fd27 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 19 Oct 2024 10:51:34 -0700 Subject: [PATCH] Muted a few warnings --- src/devices/audio.c | 2 +- src/devices/file.c | 2 +- src/uxn.c | 4 ++-- src/uxncli.c | 2 +- src/uxnemu.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/devices/audio.c b/src/devices/audio.c index 7caabb2..fcc5acb 100644 --- a/src/devices/audio.c +++ b/src/devices/audio.c @@ -22,7 +22,7 @@ typedef enum EnvStage { ENV_ATTACK = (1 << 0), ENV_DECAY = (1 << 1), ENV_SUSTAIN = (1 << 2), - ENV_RELEASE = (1 << 3), + ENV_RELEASE = (1 << 3) } EnvStage; typedef struct Envelope { diff --git a/src/devices/file.c b/src/devices/file.c index 3e124fc..aa2fee7 100644 --- a/src/devices/file.c +++ b/src/devices/file.c @@ -217,7 +217,7 @@ is_dir_path(char *p) { char c; int saw_slash = 0; - while (c = *p++) + while ((c = *p++)) saw_slash = c == DIR_SEP_CHAR; return saw_slash; } diff --git a/src/uxn.c b/src/uxn.c index 91ce7e4..a56fdc0 100644 --- a/src/uxn.c +++ b/src/uxn.c @@ -53,9 +53,9 @@ uxn_eval(Uint16 pc) /* JCI */ case 0x20: if(DEC(wst)) { JMI break; } pc += 2; break; /* JMI */ case 0x40: JMI break; /* JSI */ case 0x60: c = pc + 2; INC(rst) = c >> 8; INC(rst) = c; JMI break; - /* LI2 */ case 0xa0: INC(wst) = uxn.ram[pc++]; + /* LI2 */ case 0xa0: INC(wst) = uxn.ram[pc++]; /* fall through */ /* LIT */ case 0x80: INC(wst) = uxn.ram[pc++]; break; - /* L2r */ case 0xe0: INC(rst) = uxn.ram[pc++]; + /* L2r */ case 0xe0: INC(rst) = uxn.ram[pc++]; /* fall through */ /* LIr */ case 0xc0: INC(rst) = uxn.ram[pc++]; break; /* INC */ OPC(0x01, POx(a), PUx(a + 1)) /* POP */ OPC(0x02, REM, {}) diff --git a/src/uxncli.c b/src/uxncli.c index 859fa2d..4b8e6bb 100644 --- a/src/uxncli.c +++ b/src/uxncli.c @@ -68,7 +68,7 @@ main(int argc, char **argv) int i = 1; char *rom; if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') { - fprintf(stdout, "Uxncli - Console Varvara Emulator, 25 Aug 2024.\n"); + fprintf(stdout, "Uxncli - Console Varvara Emulator, 19 Oct 2024.\n"); i++; } rom = i == argc ? "boot.rom" : argv[i++]; diff --git a/src/uxnemu.c b/src/uxnemu.c index 7fa6317..1253e12 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -466,7 +466,7 @@ main(int argc, char **argv) /* flags */ if(argc > 1 && argv[i][0] == '-') { if(!strcmp(argv[i], "-v")) - return system_error("Uxnemu - Varvara Emulator(GUI)", "25 Aug 2024."); + return system_error("Uxnemu - Varvara Emulator(GUI)", "19 Oct 2024."); else if(!strcmp(argv[i], "-2x")) set_zoom(2, 0); else if(!strcmp(argv[i], "-3x"))