diff options
author | hk57.kim <hk57.kim@samsung.com> | 2016-03-16 16:42:19 +0900 |
---|---|---|
committer | hk57.kim <hk57.kim@samsung.com> | 2016-03-16 16:42:19 +0900 |
commit | af39a3b110b53f9ab84de1a91483b5fc952ce6c0 (patch) | |
tree | 4556e9cd9ecfa282308bd796343a6634db83eadb /src/cairo-path-stroke.c | |
parent | ea5563808b7f553121fbed5bc6b4bf908b1a8c05 (diff) | |
download | cairo-accepted/tizen/common/20160406.143944.tar.gz cairo-accepted/tizen/common/20160406.143944.tar.bz2 cairo-accepted/tizen/common/20160406.143944.zip |
fix build warningsubmit/tizen/20160406.010154submit/tizen/20160324.041503accepted/tizen/wearable/20160406.070924accepted/tizen/tv/20160406.070856accepted/tizen/mobile/20160406.070830accepted/tizen/ivi/20160406.070956accepted/tizen/common/20160406.143944
Change-Id: Iff4a3ad9811ba4454be3e29d8876a5f3974f4c7f
Signed-off-by: hk57.kim <hk57.kim@samsung.com>
Diffstat (limited to 'src/cairo-path-stroke.c')
-rw-r--r-- | src/cairo-path-stroke.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cairo-path-stroke.c b/src/cairo-path-stroke.c index 5c260c915..c3f022bd2 100644 --- a/src/cairo-path-stroke.c +++ b/src/cairo-path-stroke.c @@ -90,6 +90,8 @@ typedef struct cairo_stroker { cairo_box_t bounds; } cairo_stroker_t; +/* + # to avoid warning : defined but not used [-Wunused-function] static cairo_bool_t _cairo_stroke_segment_intersect (cairo_point_t *p1, cairo_point_t *p2, cairo_point_t *p3, cairo_point_t *p4, @@ -117,7 +119,7 @@ _cairo_stroke_segment_intersect (cairo_point_t *p1, cairo_point_t *p2, x = (pre * (x3 - x4) - (x1 - x2) * post) / d; y = (pre * (y3 - y4) - (y1 - y2) * post) / d; - /* check if x, y are within both segments */ + // check if x, y are within both segments if (x < MIN (x1, x2) || x > MAX (x1, x2) || x < MIN (x3, x4) || x > MAX (x3, x4)) return FALSE; @@ -129,6 +131,7 @@ _cairo_stroke_segment_intersect (cairo_point_t *p1, cairo_point_t *p2, p->y = _cairo_fixed_from_double (y); return TRUE; } +*/ static void _cairo_stroker_limit (cairo_stroker_t *stroker, |