From 88085892776b5b99f3f4a427870d79f896c83622 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 5 Jul 2003 06:56:16 +0000 Subject: [PATCH] Get rid of a couple compiler warnings. --- wildtest.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wildtest.c b/wildtest.c index 85c65151..53a39331 100644 --- a/wildtest.c +++ b/wildtest.c @@ -24,6 +24,8 @@ beg(int n, const char *text, const char *pattern, bool matches, bool same_as_fnm #ifdef COMPARE_WITH_FNMATCH bool fn_matched; int flags = strstr(pattern, "**")? 0 : FNM_PATHNAME; +#else + same_as_fnmatch = 0; /* Get rid of unused-variable compiler warning. */ #endif matched = wildmatch(pattern, text); @@ -50,6 +52,8 @@ end(int n, const char *text, const char *pattern, bool matches, bool same_as_fnm #ifdef COMPARE_WITH_FNMATCH bool fn_matched = false; int flags = strstr(pattern, "**")? 0 : FNM_PATHNAME; +#else + same_as_fnmatch = 0; /* Get rid of unused-variable compiler warning. */ #endif if (strncmp(pattern, "**", 2) == 0) { -- 2.34.1