From ae74abc3c59e2bc219180af39b7463dfbc1e494f Mon Sep 17 00:00:00 2001 From: jeon Date: Thu, 12 Mar 2020 20:55:44 +0900 Subject: [PATCH] libinput: remove build warnings - if ENABLE_QUIRKS is not enabled, these variables are not used. Change-Id: Ie909526d2dc18b47d8b527a141ea59092bb8ade2 --- src/libinput.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libinput.c b/src/libinput.c index c5e0d7dc..3bedfa72 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -2088,9 +2088,11 @@ libinput_init(struct libinput *libinput, void libinput_init_quirks(struct libinput *libinput) { +#ifdef ENABLE_QUIRKS const char *data_path, *override_file = NULL; struct quirks_context *quirks; +#endif if (libinput->quirks_initialized) return; -- 2.34.1