[GRASS-git] [OSGeo/grass] 37c2ba: lib/raster3d: fix -Wdeprecated-non-prototype compi...
Nicklas Larsson
noreply at github.com
Sat Feb 17 10:31:17 PST 2024
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 37c2baebd3a1cd4e07a77dff9ab284ed4b432610
https://github.com/OSGeo/grass/commit/37c2baebd3a1cd4e07a77dff9ab284ed4b432610
Author: Nicklas Larsson <n_larsson at yahoo.com>
Date: 2024-02-17 (Sat, 17 Feb 2024)
Changed paths:
M lib/raster3d/header.c
M lib/raster3d/window.c
M lib/raster3d/windowio.c
Log Message:
-----------
lib/raster3d: fix -Wdeprecated-non-prototype compiler warnings (#2901)
Split read and write functions, using function pointers do not work as the parameters
has deviating qualifiers (const vs non-const).
It does introduce some repetitive code, but do not remove the correctly used const
qualifiers in the Rast3d_key_set_double() and similar functions.
Note: the "write" part of Rast3d_readWriteWindow() in windowio.c is never used and
therefore removed. A write function is easily implemented if needed.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list