From: Ian Jackson Date: Sun, 11 May 2014 15:36:52 +0000 (+0100) Subject: Makefile.in: introduce -Wunused-function X-Git-Tag: debian/0.3.2_beta1~17 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=commitdiff_plain;h=0757576591ae7ba84ee28067c04fa7d5490632c4;hp=ff1dcd860a6176d24ad1dd7c3b8756c685ca90c6 Makefile.in: introduce -Wunused-function And delete the two unused logging functions log_multi and syslog_log. Signed-off-by: Ian Jackson --- diff --git a/Makefile.in b/Makefile.in index c224a08..ba5a861 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,7 +36,7 @@ CFLAGS:=-Wall @WRITESTRINGS@ @CFLAGS@ -Werror \ -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes \ -Wmissing-declarations -Wnested-externs -Wredundant-decls \ -Wpointer-arith -Wformat=2 -Winit-self \ - -Wswitch-enum -Wunused-variable -Wbad-function-cast \ + -Wswitch-enum -Wunused-variable -Wunused-function -Wbad-function-cast \ -Wno-strict-aliasing -fno-strict-aliasing ALL_CFLAGS:=@DEFS@ -I$(srcdir) -I. $(CFLAGS) $(EXTRA_CFLAGS) CPPFLAGS:=@CPPFLAGS@ $(EXTRA_CPPFLAGS) diff --git a/log.c b/log.c index 4aa12e7..326a891 100644 --- a/log.c +++ b/log.c @@ -189,17 +189,6 @@ static void log_vmulti(void *sst, int class, const char *message, va_list args) } } -static void log_multi(void *st, int priority, const char *message, ...) - FORMAT(printf,3,4); -static void log_multi(void *st, int priority, const char *message, ...) -{ - va_list ap; - - va_start(ap,message); - log_vmulti(st,priority,message,ap); - va_end(ap); -} - struct log_if *init_log(list_t *ll) { int i=0; @@ -409,17 +398,6 @@ static void syslog_vlog(void *sst, int class, const char *message, } } -static void syslog_log(void *sst, int priority, const char *message, ...) - FORMAT(printf,3,4); -static void syslog_log(void *sst, int priority, const char *message, ...) -{ - va_list ap; - - va_start(ap,message); - syslog_vlog(sst,priority,message,ap); - va_end(ap); -} - static struct flagstr syslog_facility_table[]={ #ifdef LOG_AUTH { "auth", LOG_AUTH },