fix warnings

This commit is contained in:
mrdudz
2025-06-26 02:16:05 +02:00
parent b1a123b601
commit 2de056167a
2 changed files with 5 additions and 1 deletions

View File

@@ -43,10 +43,12 @@ int main(void)
printf("__CC65__ defined as %04x\n", __CC65__); printf("__CC65__ defined as %04x\n", __CC65__);
printf("compiler version is %u.%u\n", VER_MAJOR, VER_MINOR); printf("compiler version is %u.%u\n", VER_MAJOR, VER_MINOR);
#pragma warn (const-comparison, push, off)
if (__CC65__ == VERSION) { if (__CC65__ == VERSION) {
printf("__CC65__ is defined correctly as (VER_MAJOR * 0x100) + VER_MINOR\n"); printf("__CC65__ is defined correctly as (VER_MAJOR * 0x100) + VER_MINOR\n");
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }
#pragma warn (const-comparison, pop)
printf("__CC65__ is incorrectly defined as (VER_MAJOR * 0x100) + (VER_MINOR * 0x10)\n"); printf("__CC65__ is incorrectly defined as (VER_MAJOR * 0x100) + (VER_MINOR * 0x10)\n");
return EXIT_FAILURE; return EXIT_FAILURE;
} }

View File

@@ -26,9 +26,11 @@ int main (void)
unsigned char num_joy; unsigned char num_joy;
unsigned char raw_value; unsigned char raw_value;
unsigned char i; unsigned char i;
#if DYN_DRV
unsigned char err; unsigned char err;
unsigned char y; #endif
#ifdef USECONIO #ifdef USECONIO
unsigned char y;
clrscr(); clrscr();
#endif #endif
PRINTF("Driver init..." CR); PRINTF("Driver init..." CR);