Found the following significant warnings:
  gdalcubes.cpp:421:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:597:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:706:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:735:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:816:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:894:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:911:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:935:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:952:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:967:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:980:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:997:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1023:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1047:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1061:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1074:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1097:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1120:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1135:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1155:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1171:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1187:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1203:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1219:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1232:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1247:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1260:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1415:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1434:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1449:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1470:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1491:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1512:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1533:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1562:1: warning: control reaches end of non-void function [-Wreturn-type]
  gdalcubes.cpp:1634:1: warning: control reaches end of non-void function [-Wreturn-type]
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/gdalcubes.Rcheck/00install.out’ for details.
* used C++ compiler: ‘g++-12 (Debian 12.2.0-10) 12.2.0’