From: Greg King Date: Tue, 17 Apr 2018 20:53:10 +0000 (-0400) Subject: Added a preprocessor guard to tgidemo.c that avoids a compiler warning. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e235ac2a0ed8f9b4a413796fe10832d783b206e3;p=cc65 Added a preprocessor guard to tgidemo.c that avoids a compiler warning. DoWarning() is compiled only if it will be used. --- diff --git a/samples/tgidemo.c b/samples/tgidemo.c index d8c2a6f50..6f3b86abc 100644 --- a/samples/tgidemo.c +++ b/samples/tgidemo.c @@ -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