From: Slava Barinov Date: Wed, 25 May 2016 11:41:46 +0000 (+0300) Subject: Moving variable definitions from header to source X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a0f300a7c1767b4ea00e9bd2801c62dbd80f15e8;p=profile%2Fmobile%2Fapps%2Fnative%2Findicator.git Moving variable definitions from header to source This prevents multiple definition errors when compiling with -fno-common which is used in Address Sanitizer Change-Id: I3c508950ad41676255e7a6808cbe8084052c0fe4 Signed-off-by: Slava Barinov --- diff --git a/inc/main.h b/inc/main.h index 6575617..a1386dc 100644 --- a/inc/main.h +++ b/inc/main.h @@ -345,10 +345,4 @@ struct appdata { void (*update_display) (int); }; -int isSimShowing; // For Simcard Icon -int isRSSI1Showing; // For RSSI1 Icon -int isRSSI2Showing; // For RSSI2 Icon -int isSilentShowing; // For Silent Icon -int isWifiDirectShowing; // For WiFi Direct Icon - #endif /* __DEF_indicator_H__ */ diff --git a/src/main.c b/src/main.c index e679450..3944334 100644 --- a/src/main.c +++ b/src/main.c @@ -76,6 +76,12 @@ int is_transparent = 0; int current_angle = 0; int current_state = 0; +int isSimShowing; // For Simcard Icon +int isRSSI1Showing; // For RSSI1 Icon +int isRSSI2Showing; // For RSSI2 Icon +int isSilentShowing; // For Silent Icon +int isWifiDirectShowing; // For WiFi Direct Icon + static struct _s_info { Ecore_Timer *listen_timer; } s_info = {