From f8e9f2cc4bbf6d1ee8ec6d5618f95be03530b95a Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Fri, 27 Jul 2012 20:02:00 -0400 Subject: selinux: avoid inclusion of null_log without selinux Avoids a compile time warning: warning: 'null_log' defined but not used [-Wunused-function] --- src/core/selinux-setup.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') diff --git a/src/core/selinux-setup.c b/src/core/selinux-setup.c index 22ca820188..fa025b7268 100644 --- a/src/core/selinux-setup.c +++ b/src/core/selinux-setup.c @@ -36,9 +36,11 @@ #include "log.h" #include "label.h" +#ifdef HAVE_SELINUX static int null_log(int type, const char *fmt, ...) { return 0; } +#endif int selinux_setup(bool *loaded_policy) { -- cgit v1.2.3-54-g00ecf