From e235ac2a0ed8f9b4a413796fe10832d783b206e3 Mon Sep 17 00:00:00 2001 From: Greg King Date: Tue, 17 Apr 2018 16:53:10 -0400 Subject: [PATCH] Added a preprocessor guard to tgidemo.c that avoids a compiler warning. DoWarning() is compiled only if it will be used. --- samples/tgidemo.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5