Moving variable definitions from header to source sandbox/chanleebf/asan
authorSlava Barinov <v.barinov@samsung.com>
Wed, 25 May 2016 11:41:46 +0000 (14:41 +0300)
committerChan Lee <chan45.lee@samsung.com>
Thu, 27 Oct 2016 16:28:06 +0000 (01:28 +0900)
This prevents multiple definition errors when compiling with -fno-common which
is used in Address Sanitizer

Change-Id: I3c508950ad41676255e7a6808cbe8084052c0fe4
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
inc/main.h
src/main.c

index 6575617c9837946d58792eb6699f78874af5b74e..a1386dc5be655645fc80014929f1c19e7f9678a4 100644 (file)
@@ -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__ */
index e6794500e9a9f5c12c4077803a6f16d921f7c729..39443346d26d50e57db8a569719f8c28806b33ff 100644 (file)
@@ -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 = {