From ac8c34e16d45023939fcd1483837f80083260a4e Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Wed, 3 May 2017 13:14:36 +0300 Subject: [PATCH] Move variable definition from header to source This fixes ASan build with -fno-common Change-Id: If8ef991aea25dcdcaa9b6dabcd4d88b4fa197aae Signed-off-by: Slava Barinov --- include/my-account-view.h | 3 +-- src/my-account-view-main.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/my-account-view.h b/include/my-account-view.h index 5ab4693..f1998ec 100755 --- a/include/my-account-view.h +++ b/include/my-account-view.h @@ -64,10 +64,9 @@ typedef struct { bool _myaccount_view_main_create(void *data); int _myaccount_get_accounts_total_count(void); -int previous_cnt; +extern int previous_cnt; #ifdef __cplusplus } #endif #endif /*__MY_ACCOUNT_VIEW_H__*/ - diff --git a/src/my-account-view-main.c b/src/my-account-view-main.c index b092103..19c5cbf 100644 --- a/src/my-account-view-main.c +++ b/src/my-account-view-main.c @@ -30,6 +30,8 @@ #include "my-account-util.h" #include "my-account-ui-widget.h" +int previous_cnt; + static void lang_changed(appdata *ad) { if (!ad) { -- 2.7.4