libinput: remove build warnings
authorjeon <jhyuni.kang@samsung.com>
Thu, 12 Mar 2020 11:55:44 +0000 (20:55 +0900)
committerjeon <jhyuni.kang@samsung.com>
Tue, 5 Jan 2021 11:01:03 +0000 (20:01 +0900)
  - if ENABLE_QUIRKS is not enabled,
    these variables are not used.

Change-Id: Ie909526d2dc18b47d8b527a141ea59092bb8ade2

src/libinput.c

index c5e0d7dc762afdf6b651439475d0f2e1e841d67a..3bedfa729a9aa76df9451bdca594a08b86986209 100644 (file)
@@ -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;