aboutsummaryrefslogtreecommitdiffstats
path: root/wildtest.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-07-05 06:56:16 +0000
committerWayne Davison <wayned@samba.org>2003-07-05 06:56:16 +0000
commit88085892776b5b99f3f4a427870d79f896c83622 (patch)
tree58f8dcc5b7a8de3e8cd6aca8b080fca2a8d52f09 /wildtest.c
parent6cd50960637fb16a0d0d64e23b42e8005bf469d6 (diff)
downloadandroid_external_rsync-88085892776b5b99f3f4a427870d79f896c83622.tar.gz
android_external_rsync-88085892776b5b99f3f4a427870d79f896c83622.tar.bz2
android_external_rsync-88085892776b5b99f3f4a427870d79f896c83622.zip
Get rid of a couple compiler warnings.
Diffstat (limited to 'wildtest.c')
-rw-r--r--wildtest.c4
1 files changed, 4 insertions, 0 deletions
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) {