From 2cfafbf2f2bd01fe9c0960b853d1ebc11bddafd7 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 5 Dec 2014 19:56:24 +0000 Subject: declare lerr and lerrx __dead; unconfuses llvm scan-build --- slowcgi.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/slowcgi.c b/slowcgi.c index 445cf86..b6f8cbf 100644 --- a/slowcgi.c +++ b/slowcgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: slowcgi.c,v 1.35 2014/09/19 21:28:32 florian Exp $ */ +/* $OpenBSD: slowcgi.c,v 1.36 2014/12/05 19:56:24 florian Exp $ */ /* * Copyright (c) 2013 David Gwynne * Copyright (c) 2013 Florian Obser @@ -191,8 +191,8 @@ void dump_fcgi_end_request_body(const char *, void cleanup_request(struct request *); struct loggers { - void (*err)(int, const char *, ...); - void (*errx)(int, const char *, ...); + __dead void (*err)(int, const char *, ...); + __dead void (*errx)(int, const char *, ...); void (*warn)(const char *, ...); void (*warnx)(const char *, ...); void (*info)(const char *, ...); @@ -208,13 +208,13 @@ const struct loggers conslogger = { warnx /* debug */ }; -void syslog_err(int, const char *, ...); -void syslog_errx(int, const char *, ...); -void syslog_warn(const char *, ...); -void syslog_warnx(const char *, ...); -void syslog_info(const char *, ...); -void syslog_debug(const char *, ...); -void syslog_vstrerror(int, int, const char *, va_list); +__dead void syslog_err(int, const char *, ...); +__dead void syslog_errx(int, const char *, ...); +void syslog_warn(const char *, ...); +void syslog_warnx(const char *, ...); +void syslog_info(const char *, ...); +void syslog_debug(const char *, ...); +void syslog_vstrerror(int, int, const char *, va_list); const struct loggers syslogger = { syslog_err, @@ -1195,7 +1195,7 @@ syslog_vstrerror(int e, int priority, const char *fmt, va_list ap) free(s); } -void +__dead void syslog_err(int ecode, const char *fmt, ...) { va_list ap; @@ -1206,7 +1206,7 @@ syslog_err(int ecode, const char *fmt, ...) exit(ecode); } -void +__dead void syslog_errx(int ecode, const char *fmt, ...) { va_list ap; -- cgit v1.2.3-2-gb3c3