]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Fix -Wmissing-prototypes and -Wunused-function warnings
authorNgie Cooper <yanegomi@gmail.com>
Thu, 14 Jul 2016 05:43:27 +0000 (22:43 -0700)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 17 Oct 2016 18:55:36 +0000 (13:55 -0500)
Remove unused functions (debug, debug_va_list, and vverbose) and
comment out verbose, as it's currently used in drill/work.c in
commented out code

Reported by: clang 3.8.0, gcc 5.3.0
Signed-off-by: Ngie Cooper <yanegomi@gmail.com>
drill/error.c

index e67b7fca020a3f8fe14f55c73808b10f8f34e670..591687d0db504f4c5a2ef80d8a87dc18fccde2e0 100644 (file)
@@ -69,6 +69,7 @@ mesg(const char *fmt, ...)
        va_end(args);
 }
 
+#if 0
 /* print stuff when in verbose mode (1) */
 void
 verbose(const char *fmt, ...)
@@ -82,34 +83,4 @@ verbose(const char *fmt, ...)
        verbose_va_list(fmt, args);
        va_end(args);
 }
-
-/* print stuff when in vverbose mode (2) */
-void
-vverbose(const char *fmt, ...)
-{
-       va_list args;
-       if (verbosity < 2) {
-               return;
-       }
-
-       va_start(args, fmt);
-       verbose_va_list(fmt, args);
-       va_end(args);
-}
-
-static void
-debug_va_list(const char *fmt, va_list args)
-{
-        vfprintf(stderr, fmt, args);
-        fprintf(stderr, "\n");
-}
-
-void
-debug(const char *fmt, ...)
-{
-       va_list args;
-       fprintf(stderr, "[DEBUG] ");
-       va_start(args, fmt);
-       debug_va_list(fmt, args);
-       va_end(args);
-}
+#endif