[postgis-tickets] [PostGIS] #3243: piles 'o clang warnings in topology

PostGIS trac at osgeo.org
Thu Aug 20 12:07:18 PDT 2015


#3243: piles 'o clang warnings in topology
-----------------------+---------------------------
  Reporter:  pramsey   |      Owner:  strk
      Type:  defect    |     Status:  new
  Priority:  medium    |  Milestone:  PostGIS 2.2.0
 Component:  topology  |    Version:  trunk
Resolution:            |   Keywords:
-----------------------+---------------------------

Comment (by robe):

 I was mistaken.  I see these on winnie's 32 and64-bit builds too and my
 warnings are different than pramsey's.
 {{{
 ---- Making all in topology
 make[1]: Entering directory `/projects/postgis/branches/2.2/topology'
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Wendif-labels -Wmissing-format-attribute -Wformat-security
 -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2
 -I../liblwgeom -I../libpgcommon
 -I/projects/geos/rel-3.5.0w32gcc481/include
 -I/projects/proj/rel-4.9.1w32gcc481/include -I/projects/libxml/rel-
 libxml2-2.7.8w32gcc481/include/libxml2
 -I/projects/json-c/rel-0.12w32gcc481/include  -I/projects/postgresql/r
 postgis_topology.c:1:0: warning: -fPIC ignored for target (all code is
 position independent) [enabled by default]
  /**********************************************************************
  ^
 postgis_topology.c: In function 'cb_checkTopoGeomRemEdge':
 postgis_topology.c:2106:13: warning: unknown conversion type character 'l'
 in format [-Wformat=]
              col_name, rem_edge);
              ^
 postgis_topology.c:2106:13: warning: too many arguments for format
 [-Wformat-extra-args]
 postgis_topology.c:2161:15: warning: unknown conversion type character 'l'
 in format [-Wformat=]
                col_name, face_right, face_left);
                ^
 postgis_topology.c:2161:15: warning: unknown conversion type character 'l'
 in format [-Wformat=]
 postgis_topology.c:2161:15: warning: too many arguments for format
 [-Wformat-extra-args]
 postgis_topology.c: In function 'cb_checkTopoGeomRemNode':
 postgis_topology.c:2222:13: warning: unknown conversion type character 'l'
 in format [-Wformat=]
              col_name, edge1, edge2);
              ^
 postgis_topology.c:2222:13: warning: unknown conversion type character 'l'
 in format [-Wformat=]
 postgis_topology.c:2222:13: warning: too many arguments for format
 [-Wformat-extra-args]
 gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-
 statement -Wendif-labels -Wmissing-format-attribute -Wformat-security
 -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -O2   -shared
 -static-libgcc -o postgis_topology-2.2.dll  postgis_topology.o
 -Lc:/MING32~2/projects/POSTGR~1/rel/PG9~1.4W3/lib -Wl,--allow-multiple-
 definition  -Wl,--as-needed   ../libpgcommon/libpgcommon.a
 ../liblwgeom/.libs/liblwgeom.a  -L/projects/geos/rel
 /mingw/bin/cpp -traditional-cpp -w -P topology.sql.in | grep -v '^#' | \
 /bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis_topology-2.2'g" >
 topology.sql
 /mingw/bin/cpp -traditional-cpp -w -P topology_drop_before.sql.in | grep
 -v '^#' | \
 /bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis_topology-2.2'g" >
 topology_drop_before.sql
 /bin/perl -0777 -ne 's/^(CREATE|ALTER)
 (CAST|OPERATOR|TYPE|TABLE|SCHEMA|DOMAIN|TRIGGER).*?;//msg;print;'
 topology.sql > topology_upgrade.sql.in
 /mingw/bin/cpp -traditional-cpp -w -P topology_drop_after.sql.in | grep -v
 '^#' | \
 /bin/perl -lpe "s'MODULE_PATHNAME'\$libdir/postgis_topology-2.2'g" >
 topology_drop_after.sql
 cat topology_drop_before.sql topology_upgrade.sql.in
 topology_drop_after.sql > topology_upgrade.sql
 }}}

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3243#comment:6>
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