From e0d0ec7dd066d8f80c963d20127b23ed80744ce9 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Tue, 5 Feb 2019 22:22:32 +0100 Subject: variable only used when whitelisting enabled --- src/firejail/profile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/firejail/profile.c b/src/firejail/profile.c index bc66aca78..26b915602 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c @@ -241,7 +241,9 @@ error: // return 1 if the command is to be added to the linked list of profile commands // return 0 if the command was already executed inside the function int profile_check_line(char *ptr, int lineno, const char *fname) { +#ifdef HAVE_WHITELIST static int whitelist_warning_printed = 0; +#endif EUID_ASSERT(); // check and process conditional profile lines -- cgit v1.2.3-70-g09d2