From 1c0e9ae7d6894723a87157e351340f2ef516831e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 11 Oct 2016 10:42:22 +0200 Subject: logging: fix a warning when built without journald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nm-logging.c:213:1: error: ‘syslog_identifier_full’ defined but not used [-Werror=unused-function] syslog_identifier_full (const struct Global *gl) ^ Fixes: fd12aa1b20407bc455c7c03750344cc76cafd924 --- src/nm-logging.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nm-logging.c') diff --git a/src/nm-logging.c b/src/nm-logging.c index baa8198f8f..d0149ffebe 100644 --- a/src/nm-logging.c +++ b/src/nm-logging.c @@ -209,12 +209,14 @@ syslog_identifier_domain (const struct Global *gl) return &gl->syslog_identifier[NM_STRLEN ("SYSLOG_IDENTIFIER=")]; } +#if SYSTEMD_JOURNAL static const char * syslog_identifier_full (const struct Global *gl) { nm_assert (_syslog_identifier_assert (gl)); return &gl->syslog_identifier[0]; } +#endif void nm_logging_set_syslog_identifier (const char *domain) -- cgit v1.2.1