]> granicus.if.org Git - postgis/commitdiff
Fix compile warnings for the cunit tests (unused variables).
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 13 Jan 2009 13:12:15 +0000 (13:12 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 13 Jan 2009 13:12:15 +0000 (13:12 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3523 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_algorithm.c
liblwgeom/cunit/cu_tester.c

index a84441182b7b0533855f212947bf25d597fface7..73a37f3a5162669c935014eae6ad17f5bb13207a 100644 (file)
@@ -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;
index f74b6ce94678d25f2487ae21b0fc23003925e475..9e071a9d09d219a12d71b4f90fbbb8e9eaef5060 100644 (file)
 ** 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();