From: Jaroslav Kysela Date: Wed, 28 Nov 2018 19:53:59 +0000 (+0100) Subject: tvhlog: fix tvhdbg() prototype when traces are not activated, fixes #5362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70af054ac3bdecf68df1594dd48c7a9e0a9de18d;p=thirdparty%2Ftvheadend.git tvhlog: fix tvhdbg() prototype when traces are not activated, fixes #5362 --- diff --git a/src/tvhlog.h b/src/tvhlog.h index 7bef63aaf..c891b826b 100644 --- a/src/tvhlog.h +++ b/src/tvhlog.h @@ -248,7 +248,7 @@ void tvhlog_backtrace_printf(const char *fmt, ...); #if ENABLE_TRACE void tvhdbg(int subsys, const char *fmt, ...); #else -static void tvhdbg(int subsys, const char *fmt, ...) {}; +static inline void tvhdbg(int subsys, const char *fmt, ...) {}; #endif #endif /* __TVH_LOGGING_H__ */