fix multi definition of 'trace_status' 35/88935/1
authorChan Lee <chan45.lee@samsung.com>
Wed, 21 Sep 2016 06:49:18 +0000 (15:49 +0900)
committerChan Lee <chan45.lee@samsung.com>
Wed, 21 Sep 2016 06:51:01 +0000 (15:51 +0900)
This prevents 'multiple definition' error when building with -fno-common
which is used in Address Sanitizer builds.

Change-Id: Ic5d1ee0ffc082b89507114ab2b93398f841a608a
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
src/wayland-tbm-client.c
src/wayland-tbm-server.c

index f5a4e95..f28df2a 100644 (file)
@@ -88,7 +88,7 @@ struct wayland_tbm_surface_queue {
        struct wl_list link;
 };
 
-WL_TBM_MONITOR_TRACE_STATUS trace_status;
+static WL_TBM_MONITOR_TRACE_STATUS trace_status;
 
 //#define DEBUG_TRACE
 #ifdef DEBUG_TRACE
index cf7a93d..d5dc857 100644 (file)
@@ -45,7 +45,7 @@ DEALINGS IN THE SOFTWARE.
 
 #include "wayland-tbm-int.h"
 
-WL_TBM_MONITOR_TRACE_STATUS trace_status;
+static WL_TBM_MONITOR_TRACE_STATUS trace_status;
 
 //#define WL_TBM_SERVER_DEBUG
 //#define DEBUG_TRACE