Fix build warning 88/103988/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 12 Dec 2016 04:38:25 +0000 (13:38 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 12 Dec 2016 05:18:59 +0000 (21:18 -0800)
warning: variable 'opacity' set but not used [-Wunused-but-set-variable]

Change-Id: Icf0f7f5d3f53ceb159b668e509f76d83a86ceb55
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/MicEffector.cpp

index a6bdbfb..6e1ec2e 100644 (file)
@@ -158,6 +158,7 @@ void MicEffector::DrawQue(int idx, bool is_start)
     unsigned int start = start_stop_anim_count - (int) speed;
     unsigned int end = start_stop_anim_count + (int) speed;
 
+#ifdef _WEARABLE
     double opacity;
 
     if (is_start) {
@@ -165,6 +166,7 @@ void MicEffector::DrawQue(int idx, bool is_start)
     } else {
         opacity = cubic_easy_out(idx, 0, 1.0, 26.0);
     }
+#endif
 
     evas_vg_shape_reset(shape);