Closed caiohamamura closed 2 weeks ago
Unlikely to be changed in a near/medium term future given this would be an ABI break of the C API
Seems to me to be “solved” with the C23 standard:
All enumerations have an underlying type. The underlying type can be explicitly specified using an enum type specifier and is its fixed underlying type. If it is not explicitly specified, the underlying type is the enumeration’s compatible type, which is either char or a standard or extended signed or unsigned integer type.
(6.7.2.2 Enumeration specifiers (p: 107-112))
Expected behavior and actual behavior.
I was using gdal library in my source code and compiling it with -Wpedantic and came across an issue when including ogr_core.h.
Steps to reproduce the problem.
Operating system
Ubuntu 18.04.4 LTS Bionic 64 bit
GDAL version and provenance
2.2.3 version from ubuntu official repository