[postgis-tickets] [PostGIS] #3935: warning: dereferencing type-punned pointer

PostGIS trac at osgeo.org
Sat Nov 25 18:46:17 PST 2017


#3935: warning: dereferencing type-punned pointer
---------------------+---------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 2.5.0
Component:  postgis  |    Version:  trunk
 Keywords:           |
---------------------+---------------------------
 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:
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3935>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list