fix warnings
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user