From eeda9eff1aa1ad973851d6589c5bcf6020a090e8 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 8 Aug 2023 16:21:45 +0800 Subject: [PATCH] ; * src/fileio.c (Ffile_selinux_context): Avoid unused variable. --- src/fileio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fileio.c b/src/fileio.c index 5d01e10f0ef..b2186a027d4 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3372,7 +3372,9 @@ or if SELinux is disabled, or if Emacs lacks SELinux support. */) { Lisp_Object user = Qnil, role = Qnil, type = Qnil, range = Qnil; Lisp_Object absname = expand_and_dir_to_file (filename); +#ifdef HAVE_LIBSELINUX const char *file; +#endif /* HAVE_LIBSELINUX */ /* If the file name has special constructs in it, call the corresponding file name handler. */ @@ -3381,9 +3383,9 @@ or if SELinux is disabled, or if Emacs lacks SELinux support. */) if (!NILP (handler)) return call2 (handler, Qfile_selinux_context, absname); +#ifdef HAVE_LIBSELINUX file = SSDATA (ENCODE_FILE (absname)); -#if HAVE_LIBSELINUX if (selinux_enabled_p (file)) { char *con;