From: Ngie Cooper Date: Thu, 14 Jul 2016 05:43:27 +0000 (-0700) Subject: Fix -Wmissing-prototypes and -Wunused-function warnings X-Git-Tag: release-1.7.0-rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f85a523e50dd0814afd677e3b309d119c4262b0;p=thirdparty%2Fldns.git Fix -Wmissing-prototypes and -Wunused-function warnings 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 --- diff --git a/drill/error.c b/drill/error.c index e67b7fca..591687d0 100644 --- a/drill/error.c +++ b/drill/error.c @@ -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