[postgis-commits] svn - r3523 - trunk/liblwgeom/cunit
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Jan 13 05:12:15 PST 2009
Author: mcayland
Date: 2009-01-13 05:12:15 -0800 (Tue, 13 Jan 2009)
New Revision: 3523
Modified:
trunk/liblwgeom/cunit/cu_algorithm.c
trunk/liblwgeom/cunit/cu_tester.c
Log:
Fix compile warnings for the cunit tests (unused variables).
Modified: trunk/liblwgeom/cunit/cu_algorithm.c
===================================================================
--- trunk/liblwgeom/cunit/cu_algorithm.c 2009-01-13 13:00:48 UTC (rev 3522)
+++ trunk/liblwgeom/cunit/cu_algorithm.c 2009-01-13 13:12:15 UTC (rev 3523)
@@ -278,8 +278,6 @@
void test_lwline_crossing_short_lines(void)
{
- int rv = 0;
-
/*
** Simple test, two two-point lines
*/
@@ -465,7 +463,6 @@
void test_lwline_clip(void)
{
- int rv = 0;
LWCOLLECTION *c;
char *ewkt;
@@ -529,7 +526,6 @@
void test_lwmline_clip(void)
{
- int rv = 0;
LWCOLLECTION *c;
char *ewkt;
LWMLINE *mline = NULL;
@@ -630,7 +626,6 @@
LWLINE *line = lwline_construct(-1, NULL, pa);
LWCOLLECTION *c;
char *ewkt;
- int rv = 0;
p->x = 0.0;
p->y = 0.0;
Modified: trunk/liblwgeom/cunit/cu_tester.c
===================================================================
--- trunk/liblwgeom/cunit/cu_tester.c 2009-01-13 13:00:48 UTC (rev 3522)
+++ trunk/liblwgeom/cunit/cu_tester.c 2009-01-13 13:12:15 UTC (rev 3523)
@@ -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();
More information about the postgis-commits
mailing list