#3935 closed defect (fixed)
warning: dereferencing type-punned pointer
Reported by: | robe | Owned by: | pramsey |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.5.0 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description
setting up deb9 and notice slave running has this
g_serialized.c: In function ‘gserialized_cmp’: g_serialized.c:310:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t*)(g1->data) == POINTTYPE && ^ g_serialized.c:311:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t*)(g2->data) == POINTTYPE ^
Not sure if above is anything to worry about. running with below
-------------- Compiler Info ------------- C compiler: gcc -g -O2 SQL preprocessor: /usr/bin/cpp -traditional-cpp -w -P -------------- Dependencies -------------- GEOS config: /usr/bin/geos-config GEOS version: 3.5.1 GDAL config: /usr/bin/gdal-config GDAL version: 2.1.2 SFCGAL config: /usr/bin/sfcgal-config SFCGAL version: 1.3.0 PostgreSQL config: /usr/bin/pg_config PostgreSQL version: PostgreSQL 9.6.6 PROJ4 version: 49 Libxml2 config: /usr/bin/xml2-config Libxml2 version: 2.9.4 JSON-C support: yes protobuf-c support: no PCRE support: yes Perl: /usr/bin/perl --------------- Extensions --------------- PostGIS Raster: enabled PostGIS Topology: enabled SFCGAL support: enabled Address Standardizer support: enabled -------- Documentation Generation -------- xsltproc: xsl style sheets: dblatex: convert: /usr/bin/convert mathml2.dtd: http://www.w3.org/Math/DTD/mathml2/mathml2.dtd configure: WARNING: --------- GEOS VERSION WARNING ------------ configure: WARNING: You are building against GEOS 3.5.1 configure: WARNING: To take advantage of all the features of configure: WARNING: this PostGIS version requires GEOS 3.7.0 or higher which is not out yet. configure: WARNING: To take advantage of most of the features of this PostGIS configure: WARNING: we recommend GEOS 3.6 or higher configure: WARNING: You can download the latest versions from configure: WARNING: http://trac.osgeo.org/geos configure: WARNING:
Note:
See TracTickets
for help on using tickets.
I've got rid of this warning here: https://github.com/postgis/postgis/commit/ebb5f4c502135be1900ad936d923952abad3973a#diff-742b8e6974a8ed0f30eacc8b12ed82ddR308
and it was later reintroduced by pramsey in the next commit: https://github.com/postgis/postgis/commit/699fddf0cf254cd01d154ba2e5d5055e94f82efe