mirror of
https://github.com/cc65/cc65.git
synced 2025-02-05 20:31:53 +00:00
Added a preprocessor guard to tgidemo.c that avoids a compiler warning.
DoWarning() is compiled only if it will be used.
This commit is contained in:
parent
d314a27e76
commit
e235ac2a0e
@ -49,8 +49,9 @@ static void CheckError (const char* S)
|
||||
|
||||
|
||||
|
||||
#if DYN_DRV
|
||||
static void DoWarning (void)
|
||||
/* Warn the user that the TGI driver is needed for this program */
|
||||
/* Warn the user that the dynamic TGI driver is needed for this program */
|
||||
{
|
||||
printf ("Warning: This program needs the TGI\n"
|
||||
"driver on disk! Press 'y' if you have\n"
|
||||
@ -58,8 +59,9 @@ static void DoWarning (void)
|
||||
if (tolower (cgetc ()) != 'y') {
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
printf ("Ok. Please wait patiently...\n");
|
||||
printf ("OK. Please wait patiently...\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user