]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Get rid of a couple compiler warnings.
authorWayne Davison <wayned@samba.org>
Sat, 5 Jul 2003 06:56:16 +0000 (06:56 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 5 Jul 2003 06:56:16 +0000 (06:56 +0000)
wildtest.c

index 85c65151d1ebc2f74dac426083d626617df736f0..53a3933147ef556c9a2a6c4d0e8acd77017fdc09 100644 (file)
@@ -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) {