[postgis-tickets] [PostGIS] #4116: Select a C standard and include in CFLAGS
PostGIS
trac at osgeo.org
Wed Jul 4 18:55:59 PDT 2018
#4116: Select a C standard and include in CFLAGS
---------------------+---------------------------
Reporter: dbaston | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.5.0
Component: postgis | Version: trunk
Keywords: |
---------------------+---------------------------
I made some changes that compiled without errors locally, but when I made
a PR, Travis complained about declaring a variable inside a for loop,
e.g.:
`for (int i = 0)`.
Trying to reproduce this locally, I added `-std=c89` to my `CFLAGS`, which
indeed produced this error, but also some new errors about usage of the
`inline` keyword. Switching to `-std=gnu89` seemed to reproduce the
conditions of the Travis environment.
I'd suggest that we settle on a non-GNU standard (`-std=c99` ?) and add it
to our build flags so we can get consistent results with different
compilers.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4116>
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