Open wenzeslaus opened 3 weeks ago
This is reported upstream with https://github.com/OSGeo/gdal/issues/2322. This is circumvented on Mac CI runner with:
Unfortunately we also have it in our code:
(planned to be addressed in GDAL 3.10 per https://github.com/OSGeo/gdal/pull/11133)
Describe the bug
Compilation results in a lot of warnings coming from the include of a GDAL OGR header file with GCC 13 and C GNU 17.
Including
gdal/ogr_core.h
results in multiplewarning: ISO C restricts enumerator values to range of ‘int’ before C2X [-Wpedantic]
.To reproduce
This comes from multiple directories, e.g.,
include/grass/vect
. I'm not sure what exact combination of versions and flags is causing this besides the obvious-Wpedantic
.Expected behavior
While the code is external to the project, the compilation output is full of the warnings. It seems that updating to
-std=gnu2x
solves the issue as the warning suggests, so maybe we can just wait.Screenshots
System description
-std=gnu17