0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2024-11-25 07:15:12 +00:00

Muted a few warnings

This commit is contained in:
Devine Lu Linvega 2024-10-19 10:51:34 -07:00
parent f8c53f59b0
commit 30ac4bdcb1
5 changed files with 6 additions and 6 deletions

View file

@ -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 {

View file

@ -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;
}

View file

@ -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, {})

View file

@ -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++];

View file

@ -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"))