]> granicus.if.org Git - fortune-mod/blobdiff - fortune-mod/fortune/fortune.c
Silence compiler/linter warnings of declared but unused variables.
[fortune-mod] / fortune-mod / fortune / fortune.c
index 54b96fa64d462ed5ad51cf4204505e2dd7cde3e8..f2096ef683bd88ed69c2f660e0d97d3453a52dfc 100644 (file)
@@ -1162,9 +1162,8 @@ static int form_file_list(char **files, int file_cnt)
  */
 static void getargs(int argc, char **argv)
 {
-    bool ignore_case = false;
-
 #ifdef WITH_REGEX
+    bool ignore_case = false;
     char *pat = NULL;
 #endif
 
@@ -2000,7 +1999,10 @@ int main(int argc, char *argv[])
             sleep((unsigned int)mymax(Fort_len / CPERS, MINW));
         }
     }
+#ifdef WITH_REGEX
 cleanup:
+#endif
+
 #ifdef WITH_RECODE
     recode_delete_request(request);
     recode_delete_outer(outer);