Moving variable definitions from header to source sandbox/vbarinov/asan
authorSlava Barinov <v.barinov@samsung.com>
Wed, 25 May 2016 11:41:46 +0000 (14:41 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 25 May 2016 11:41:46 +0000 (14:41 +0300)
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 883f560b54794a100df8b7f06627123a54b394be..47f32f103291bdd348a36c6eee859f0ef6525ed8 100644 (file)
@@ -144,10 +144,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 92e67e025552cf4d99924fd82dd4d36e9cd34de3..3e7b32ed62a9717f0a936474cca50d0d67f5b9ad 100644 (file)
@@ -93,6 +93,13 @@ Ecore_Timer *clock_timer;
 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
+
 #if 0
 static int bFirst_opacity = 1;
 #endif