From 3b34cb7b4ad7b8fcfedfcb77e80f4dab4000a061 Mon Sep 17 00:00:00 2001 From: Andrey Kazmin Date: Thu, 13 Feb 2020 15:00:49 +0300 Subject: [PATCH] Fixed ASan build with -fno-common Signed-off-by: Andrey Kazmin --- include/PUI_common.h | 2 +- src/PUI.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/PUI_common.h b/include/PUI_common.h index d937115..0a0a52d 100644 --- a/include/PUI_common.h +++ b/include/PUI_common.h @@ -26,7 +26,7 @@ #ifndef _LIBPUI_COMMON_H_ #define _LIBPUI_COMMON_H_ -int _pui_log_level; +extern int _pui_log_level; typedef enum { PUI_ERROR_NONE, diff --git a/src/PUI.c b/src/PUI.c index 4db7180..013e43e 100644 --- a/src/PUI.c +++ b/src/PUI.c @@ -39,6 +39,8 @@ extern EAPI void ecore_wl2_window_buffer_attach(Ecore_Wl2_Window *win, void *buffer, int x, int y, Eina_Bool implicit); extern EAPI void ecore_wl2_window_damage(Ecore_Wl2_Window *window, Eina_Rectangle *rects, unsigned int count); +int _pui_log_level; + static int _pui_init_count = 0; static pui_module_data *pui_module = NULL; -- 2.7.4