Fix build warning 69/262269/1
authorSeungho Baek <sbsh.baek@samsung.com>
Thu, 5 Aug 2021 15:20:48 +0000 (00:20 +0900)
committerSeungho Baek <sbsh.baek@samsung.com>
Thu, 5 Aug 2021 15:21:31 +0000 (00:21 +0900)
Change-Id: I7fce469939d8ad25de3f9f21b891fdbe11747720
Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
dali-csharp-binder/src/canvas-view-wrap.cpp
dali-csharp-binder/src/transition-set-wrap.cpp

index b772cb198de4e68976d9a2caf98887468db720bf..0c57dd45c17ec35d1a9ee8b3cfa71e9358f7fe59 100644 (file)
@@ -138,7 +138,6 @@ SWIGEXPORT void SWIGSTDCALL
 CSharp_Dali_CanvasView_RemoveAllDrawables(char *pCanvasView) {
   Dali::Toolkit::CanvasView canvasView;
   Dali::CanvasRenderer::Drawable drawable;
-  bool result = true;
 
   if (!pCanvasView) {
     SWIG_CSharpSetPendingExceptionArgument(
@@ -828,7 +827,7 @@ SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Shape_SetStrokeDash(char *pShape,
   {
     try {
       Vector<float> dashPattern;
-      for (unsigned int count = 0; count < patternLength; count++) {
+      for (int count = 0; count < patternLength; count++) {
         dashPattern.PushBack(pDashPattern[count]);
       }
       shape.SetStrokeDash(dashPattern);
@@ -877,7 +876,7 @@ CSharp_Dali_Shape_GetStrokeDashIndexOf(char *pShape, int index) {
   {
     try {
       Dali::Vector<float> dashPattern = shape.GetStrokeDash();
-      if (index < 0 || index > dashPattern.Size()) {
+      if (index < 0 || static_cast<uint32_t>(index) > dashPattern.Size()) {
         throw std::invalid_argument("invalid index");
       }
       result = dashPattern[index];
index 238b0c8954f27780b2d2e259e1340c4a88c9fd96..0f5598ac7a7f2269a994fae00a504bf8e60dc7ec 100755 (executable)
@@ -249,7 +249,6 @@ extern "C"
   SWIGEXPORT bool SWIGSTDCALL CSharp_Dali_TransitionSet_Signal_Empty(void *nuiTransitionSet)
   {
     Dali::Toolkit::TransitionSet *transitionSet = (Dali::Toolkit::TransitionSet *)nuiTransitionSet;
-    Dali::Toolkit::TransitionSet::TransitionSetSignalType *transitionSetSignalType = (Dali::Toolkit::TransitionSet::TransitionSetSignalType *)0;
     bool reselt;
     {
       try
@@ -264,7 +263,6 @@ extern "C"
   SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TransitionSet_Signal_GetConnectionCount(void *nuiTransitionSet)
   {
     Dali::Toolkit::TransitionSet *transitionSet = (Dali::Toolkit::TransitionSet *)nuiTransitionSet;
-    Dali::Toolkit::TransitionSet::TransitionSetSignalType *transitionSetSignalType = (Dali::Toolkit::TransitionSet::TransitionSetSignalType *)0;
     std::size_t reselt;
     {
       try
@@ -280,7 +278,6 @@ extern "C"
   {
     Dali::Toolkit::TransitionSet *transitionSet = (Dali::Toolkit::TransitionSet *)nuiTransitionSet;
     void (*func)(Dali::Toolkit::TransitionSet &) = (void (*)(Dali::Toolkit::TransitionSet &))nuiFunc;
-    Dali::Toolkit::TransitionSet::TransitionSetSignalType *transitionSetSignalType = (Dali::Toolkit::TransitionSet::TransitionSetSignalType *)0;
     {
       try
       {
@@ -294,7 +291,6 @@ extern "C"
   {
     Dali::Toolkit::TransitionSet *transitionSet = (Dali::Toolkit::TransitionSet *)nuiTransitionSet;
     void (*func)(Dali::Toolkit::TransitionSet &) = (void (*)(Dali::Toolkit::TransitionSet &))nuiFunc;
-    Dali::Toolkit::TransitionSet::TransitionSetSignalType *transitionSetSignalType = (Dali::Toolkit::TransitionSet::TransitionSetSignalType *)0;
     {
       try
       {