Support build with -fno-common 44/216344/1
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Wed, 23 Oct 2019 15:11:16 +0000 (18:11 +0300)
committerMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Wed, 23 Oct 2019 20:31:47 +0000 (23:31 +0300)
Fix up ASan build: do not use variable definitons inside header files to avoid
multiple definitons error.

Change-Id: I00d74bd5c9e3e966b1acc29416f273477eaae7f5
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
include/bt-internal-types.c
include/bt-internal-types.h

index 1c91f88..402fcdd 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "bt-internal-types.h"
 
+bool is_battery_monitor_enabled = false;
+
 tizen_profile_t profile = _PROFILE_UNKNOWN;
 
 bt_plugin_info_t *headed_plugin_info = NULL;
index 51de888..20eeb1b 100644 (file)
@@ -49,7 +49,7 @@ typedef enum {
        BT_FTP_SERVER,
 } bt_server_type_t;
 
-bool is_battery_monitor_enabled;
+extern bool is_battery_monitor_enabled;
 
 typedef enum {
        BT_SYNC_REQ,