From: Chan Lee Date: Wed, 21 Sep 2016 06:49:18 +0000 (+0900) Subject: fix multi definition of 'trace_status' X-Git-Tag: accepted/tizen/common/20160926.154340~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5293e850fcaf061727ae342bcef5ba9cd99aa19f;p=platform%2Fcore%2Fuifw%2Fwayland-tbm.git fix multi definition of 'trace_status' 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 --- diff --git a/src/wayland-tbm-client.c b/src/wayland-tbm-client.c index f5a4e95..f28df2a 100644 --- a/src/wayland-tbm-client.c +++ b/src/wayland-tbm-client.c @@ -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 diff --git a/src/wayland-tbm-server.c b/src/wayland-tbm-server.c index cf7a93d..d5dc857 100644 --- a/src/wayland-tbm-server.c +++ b/src/wayland-tbm-server.c @@ -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