Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused errno.h includes #295

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion extensions/address_standardizer/std_pg_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions extras/wkb_reader/wkbtest.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwgeom_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "lwgeom_log.h"

#include <stdio.h>
#include <errno.h>
#include <assert.h>
#include "../postgis_svn_revision.h"

Expand Down
1 change: 0 additions & 1 deletion liblwgeom/lwgeom_topo.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@

#include <stdio.h>
#include <inttypes.h> /* for PRId64 */
#include <errno.h>
#include <math.h>

#ifdef WIN32
Expand Down
4 changes: 0 additions & 4 deletions liblwgeom/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "lwgeom_log.h"
#include <string.h>


/** convert decimal degress to radians */
static void
to_rad(POINT4D *pt)
Expand Down Expand Up @@ -173,6 +172,3 @@ lwproj_from_string(const char *str1)
}
return pj_init_plus(str1);
}



1 change: 0 additions & 1 deletion libpgcommon/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>


/**
Expand Down
1 change: 0 additions & 1 deletion postgis/geography_inout.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>

#include "utils/elog.h"
#include "utils/array.h"
Expand Down
1 change: 0 additions & 1 deletion postgis/geography_measurement.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
1 change: 0 additions & 1 deletion postgis/gserialized_estimate.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ dimensionality cases. (2D geometry) &&& (3D column), etc.
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <ctype.h>


Expand Down
1 change: 0 additions & 1 deletion postgis/gserialized_typmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>

#include "utils/elog.h"
#include "utils/array.h"
Expand Down
2 changes: 0 additions & 2 deletions postgis/lwgeom_box.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>


/* forward defs */
Datum BOX2D_in(PG_FUNCTION_ARGS);
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_box3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>

#include "postgres.h"
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_functions_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions postgis/lwgeom_functions_temporal.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>


/*
* Return the measure at which interpolated points on the two
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_in_kml.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@

#include <libxml/tree.h>
#include <libxml/parser.h>
#include <errno.h>
#include <string.h>

#include "postgres.h"
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_inout.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <assert.h>

#include "access/gist.h"
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_ogc.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>

#include "access/gist.h"
#include "access/itup.h"
Expand Down
1 change: 0 additions & 1 deletion postgis/lwgeom_spheroid.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <float.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>

#include "access/gist.h"
#include "access/itup.h"
Expand Down
3 changes: 0 additions & 3 deletions postgis/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down