[gdal-dev] Breaking API Change

Daniel Baston dbaston at gmail.com
Fri Jan 30 12:31:54 PST 2026


Andrew,

I don't think any ship has sailed -- 3.13 will not be released for several
months.

Is there a situation where the change to client code is more involved than
changing "char**" to "CSLConstList" ?

Dan

[1] https://github.com/rspatial/terra/pull/2026/changes
[2] https://github.com/r-spatial/sf/pull/2583/changes
[3] https://github.com/firelab/gdalraster/pull/868/changes

On Fri, Jan 30, 2026 at 2:58 PM Andrew Bell via gdal-dev <
gdal-dev at lists.osgeo.org> wrote:

> Hi,
>
> It looks like a bunch of API functions have changed from returning char**
> to CSLConstList. This may break existing user code as the const conversion
> will be disallowed by many compilers.
>
> I get that returning const lists may be seen to be better than the old
> way, but it seems like the ship has sailed WRT the API. Perhaps this
> deserves some discussion.
>
> --
> Andrew Bell
> andrew.bell.ia at gmail.com
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20260130/e88394c9/attachment.htm>


More information about the gdal-dev mailing list