[postgis-tickets] r16767 - Remove unused errno.h includes.

Darafei komzpa at gmail.com
Wed Sep 12 10:21:38 PDT 2018


Author: komzpa
Date: 2018-09-12 10:21:38 -0700 (Wed, 12 Sep 2018)
New Revision: 16767

Modified:
   trunk/extensions/address_standardizer/std_pg_hash.c
   trunk/extras/wkb_reader/wkbtest.h
   trunk/liblwgeom/lwgeom_api.c
   trunk/liblwgeom/lwgeom_topo.c
   trunk/liblwgeom/lwgeom_transform.c
   trunk/libpgcommon/lwgeom_transform.c
   trunk/postgis/geography_inout.c
   trunk/postgis/geography_measurement.c
   trunk/postgis/gserialized_estimate.c
   trunk/postgis/gserialized_typmod.c
   trunk/postgis/lwgeom_box.c
   trunk/postgis/lwgeom_box3d.c
   trunk/postgis/lwgeom_btree.c
   trunk/postgis/lwgeom_dump.c
   trunk/postgis/lwgeom_functions_basic.c
   trunk/postgis/lwgeom_functions_temporal.c
   trunk/postgis/lwgeom_in_kml.c
   trunk/postgis/lwgeom_inout.c
   trunk/postgis/lwgeom_ogc.c
   trunk/postgis/lwgeom_spheroid.c
   trunk/postgis/lwgeom_transform.c
Log:
Remove unused errno.h includes.

Closes https://github.com/postgis/postgis/pull/295


Modified: trunk/extensions/address_standardizer/std_pg_hash.c
===================================================================
--- trunk/extensions/address_standardizer/std_pg_hash.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/extensions/address_standardizer/std_pg_hash.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -23,7 +23,6 @@
 #include <sys/time.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #ifdef DEBUG
 #define SET_TIME(a) gettimeofday(&(a), NULL)

Modified: trunk/extras/wkb_reader/wkbtest.h
===================================================================
--- trunk/extras/wkb_reader/wkbtest.h	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/extras/wkb_reader/wkbtest.h	2018-09-12 17:21:38 UTC (rev 16767)
@@ -2,10 +2,8 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 #include <endian.h>
 
-
 #include <libpq-fe.h>
 
 typedef signed int int32;               /* == 32 bits */

Modified: trunk/liblwgeom/lwgeom_api.c
===================================================================
--- trunk/liblwgeom/lwgeom_api.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/liblwgeom/lwgeom_api.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -29,7 +29,6 @@
 #include "lwgeom_log.h"
 
 #include <stdio.h>
-#include <errno.h>
 #include <assert.h>
 #include "../postgis_svn_revision.h"
 

Modified: trunk/liblwgeom/lwgeom_topo.c
===================================================================
--- trunk/liblwgeom/lwgeom_topo.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/liblwgeom/lwgeom_topo.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -35,7 +35,6 @@
 
 #include <stdio.h>
 #include <inttypes.h> /* for PRId64 */
-#include <errno.h>
 #include <math.h>
 
 #ifdef WIN32

Modified: trunk/liblwgeom/lwgeom_transform.c
===================================================================
--- trunk/liblwgeom/lwgeom_transform.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/liblwgeom/lwgeom_transform.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -28,7 +28,6 @@
 #include "lwgeom_log.h"
 #include <string.h>
 
-
 /** convert decimal degress to radians */
 static void
 to_rad(POINT4D *pt)
@@ -173,6 +172,3 @@
 	}
 	return pj_init_plus(str1);
 }
-
-
-

Modified: trunk/libpgcommon/lwgeom_transform.c
===================================================================
--- trunk/libpgcommon/lwgeom_transform.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/libpgcommon/lwgeom_transform.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -31,7 +31,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 
 /**

Modified: trunk/postgis/geography_inout.c
===================================================================
--- trunk/postgis/geography_inout.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/geography_inout.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -31,7 +31,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #include "utils/elog.h"
 #include "utils/array.h"

Modified: trunk/postgis/geography_measurement.c
===================================================================
--- trunk/postgis/geography_measurement.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/geography_measurement.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -31,7 +31,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #include "liblwgeom.h"         /* For standard geometry types. */
 #include "liblwgeom_internal.h"         /* For FP comparators. */

Modified: trunk/postgis/gserialized_estimate.c
===================================================================
--- trunk/postgis/gserialized_estimate.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/gserialized_estimate.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -118,7 +118,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 #include <ctype.h>
 
 

Modified: trunk/postgis/gserialized_typmod.c
===================================================================
--- trunk/postgis/gserialized_typmod.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/gserialized_typmod.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -31,7 +31,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #include "utils/elog.h"
 #include "utils/array.h"

Modified: trunk/postgis/lwgeom_box.c
===================================================================
--- trunk/postgis/lwgeom_box.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_box.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -39,9 +39,7 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
-
 /* forward defs */
 Datum BOX2D_in(PG_FUNCTION_ARGS);
 Datum BOX2D_out(PG_FUNCTION_ARGS);

Modified: trunk/postgis/lwgeom_box3d.c
===================================================================
--- trunk/postgis/lwgeom_box3d.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_box3d.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -38,7 +38,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #define SHOW_DIGS_DOUBLE 15
 #define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 + 1)

Modified: trunk/postgis/lwgeom_btree.c
===================================================================
--- trunk/postgis/lwgeom_btree.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_btree.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -38,7 +38,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 Datum lwgeom_lt(PG_FUNCTION_ARGS);
 Datum lwgeom_le(PG_FUNCTION_ARGS);

Modified: trunk/postgis/lwgeom_dump.c
===================================================================
--- trunk/postgis/lwgeom_dump.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_dump.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -27,7 +27,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 #include <assert.h>
 
 #include "postgres.h"

Modified: trunk/postgis/lwgeom_functions_basic.c
===================================================================
--- trunk/postgis/lwgeom_functions_basic.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_functions_basic.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -39,7 +39,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 Datum LWGEOM_mem_size(PG_FUNCTION_ARGS);
 Datum LWGEOM_summary(PG_FUNCTION_ARGS);

Modified: trunk/postgis/lwgeom_functions_temporal.c
===================================================================
--- trunk/postgis/lwgeom_functions_temporal.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_functions_temporal.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -37,9 +37,7 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
-
 /*
  * Return the measure at which interpolated points on the two
  * input lines are at the smallest distance.

Modified: trunk/postgis/lwgeom_in_kml.c
===================================================================
--- trunk/postgis/lwgeom_in_kml.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_in_kml.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -41,7 +41,6 @@
 
 #include <libxml/tree.h>
 #include <libxml/parser.h>
-#include <errno.h>
 #include <string.h>
 
 #include "postgres.h"

Modified: trunk/postgis/lwgeom_inout.c
===================================================================
--- trunk/postgis/lwgeom_inout.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_inout.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -30,7 +30,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 #include <assert.h>
 
 #include "access/gist.h"

Modified: trunk/postgis/lwgeom_ogc.c
===================================================================
--- trunk/postgis/lwgeom_ogc.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_ogc.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -29,7 +29,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #include "access/gist.h"
 #include "access/itup.h"

Modified: trunk/postgis/lwgeom_spheroid.c
===================================================================
--- trunk/postgis/lwgeom_spheroid.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_spheroid.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -30,7 +30,6 @@
 #include <float.h>
 #include <string.h>
 #include <stdio.h>
-#include <errno.h>
 
 #include "access/gist.h"
 #include "access/itup.h"

Modified: trunk/postgis/lwgeom_transform.c
===================================================================
--- trunk/postgis/lwgeom_transform.c	2018-09-12 16:50:10 UTC (rev 16766)
+++ trunk/postgis/lwgeom_transform.c	2018-09-12 17:21:38 UTC (rev 16767)
@@ -31,13 +31,10 @@
 #include "liblwgeom.h"
 #include "lwgeom_transform.h"
 
-
 Datum transform(PG_FUNCTION_ARGS);
 Datum transform_geom(PG_FUNCTION_ARGS);
 Datum postgis_proj_version(PG_FUNCTION_ARGS);
 
-
-
 /**
  * transform( GEOMETRY, INT (output srid) )
  * tmpPts - if there is a nadgrid error (-38), we re-try the transform



More information about the postgis-tickets mailing list