From: sub.mohanty@samsung.com Date: Thu, 4 Jul 2019 12:49:58 +0000 (+0900) Subject: fix warning regarding nested anonymus union X-Git-Tag: submit/tizen/20190718.020831~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2549b352ea5e15aba36e32a0f17fb102d2e69321;p=platform%2Fcore%2Fuifw%2Flottie-player.git fix warning regarding nested anonymus union --- diff --git a/src/vector/vbrush.h b/src/vector/vbrush.h index 94db6d0..23a7695 100644 --- a/src/vector/vbrush.h +++ b/src/vector/vbrush.h @@ -47,13 +47,15 @@ public: VGradient::Mode mMode; VGradientStops mStops; float mAlpha{1.0}; + struct Linear{ + float x1, y1, x2, y2; + }; + struct Radial{ + float cx, cy, fx, fy, cradius, fradius; + }; union { - struct { - float x1, y1, x2, y2; - } linear; - struct { - float cx, cy, fx, fy, cradius, fradius; - } radial; + Linear linear; + Radial radial; }; VMatrix mMatrix; }; diff --git a/src/vector/vdrawhelper.h b/src/vector/vdrawhelper.h index a0245d7..9c1b567 100644 --- a/src/vector/vdrawhelper.h +++ b/src/vector/vdrawhelper.h @@ -103,13 +103,15 @@ private: struct VGradientData { VGradient::Spread mSpread; + struct Linear{ + float x1, y1, x2, y2; + }; + struct Radial{ + float cx, cy, fx, fy, cradius, fradius; + }; union { - struct { - float x1, y1, x2, y2; - } linear; - struct { - float cx, cy, fx, fy, cradius, fradius; - } radial; + Linear linear; + Radial radial; }; const uint32_t *mColorTable; bool mColorTableAlpha;