Fix ASan build 62/159562/3
authorDmitriy Evgenevich Gonzha <d.gonzha@samsung.com>
Thu, 9 Nov 2017 15:09:05 +0000 (18:09 +0300)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 24 Jan 2018 02:31:51 +0000 (02:31 +0000)
Move variables from header to source to fix build
with -fno-common

Change-Id: I1897f8f0daacd6de74344248c85512b373255d88
Signed-off-by: Dmitriy Evgenevich Gonzha <d.gonzha@samsung.com>
src/bin/e_input_device.c
src/bin/e_input_private.h

index 974e999522490d41310dcccf3cbfd68625bcea4e..af449d327b5fd3f371070894a474297436497dfd 100644 (file)
@@ -5,6 +5,9 @@
 static Eina_List *einput_devices;
 static E_Input_Device *e_input_device_default = NULL;
 
+struct xkb_keymap *cached_keymap;
+struct xkb_context *cached_context;
+
 static int
 _device_open_no_pending(const char *device, int flags)
 {
index 46dd82b09e3d64daf32b2ab18436ec7ba5505e99..010ed6385be471fe26432dc982002c0eebb2b2ff 100644 (file)
@@ -10,8 +10,8 @@
 #include <libinput.h>
 #include <Eeze.h>
 
-struct xkb_keymap *cached_keymap;
-struct xkb_context *cached_context;
+extern struct xkb_keymap *cached_keymap;
+extern struct xkb_context *cached_context;
 
 #define E_INPUT_ENV_LIBINPUT_LOG_DISABLE "E_INPUT_LIBINPUT_LOG_DISABLE"
 #define E_INPUT_ENV_LIBINPUT_LOG_EINA_LOG "E_INPUT_LIBINPUT_LOG_EINA_LOG"