From d88132f39f612eb276e603c44c971db39038646f Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Tue, 13 Jan 2009 13:12:15 +0000 Subject: [PATCH] Fix compile warnings for the cunit tests (unused variables). git-svn-id: http://svn.osgeo.org/postgis/trunk@3523 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/cunit/cu_algorithm.c | 5 ----- liblwgeom/cunit/cu_tester.c | 8 -------- 2 files changed, 13 deletions(-) diff --git a/liblwgeom/cunit/cu_algorithm.c b/liblwgeom/cunit/cu_algorithm.c index a84441182..73a37f3a5 100644 --- a/liblwgeom/cunit/cu_algorithm.c +++ b/liblwgeom/cunit/cu_algorithm.c @@ -278,8 +278,6 @@ void test_lw_segment_intersects(void) void test_lwline_crossing_short_lines(void) { - int rv = 0; - /* ** Simple test, two two-point lines */ @@ -465,7 +463,6 @@ void test_lwpoint_interpolate(void) void test_lwline_clip(void) { - int rv = 0; LWCOLLECTION *c; char *ewkt; @@ -529,7 +526,6 @@ void test_lwline_clip(void) void test_lwmline_clip(void) { - int rv = 0; LWCOLLECTION *c; char *ewkt; LWMLINE *mline = NULL; @@ -630,7 +626,6 @@ void test_lwline_clip_big(void) LWLINE *line = lwline_construct(-1, NULL, pa); LWCOLLECTION *c; char *ewkt; - int rv = 0; p->x = 0.0; p->y = 0.0; diff --git a/liblwgeom/cunit/cu_tester.c b/liblwgeom/cunit/cu_tester.c index f74b6ce94..9e071a9d0 100644 --- a/liblwgeom/cunit/cu_tester.c +++ b/liblwgeom/cunit/cu_tester.c @@ -21,14 +21,6 @@ ** Set up liblwgeom to run in stand-alone mode using the ** usual system memory handling functions. */ -void cunit_lwerr(const char *fmt, va_list ap) { - printf("Got an LWERR.\n"); -} - -void cunit_lwnotice(const char *fmt, va_list ap) { - printf("Got an LWNOTICE.\n"); -} - void lwgeom_init_allocators(void) { /* liblwgeom callback - install default handlers */ lwgeom_install_default_allocators(); -- 2.49.0