Found the following significant warnings:
  ../inst/include/hesim/stats/distributions.h:123:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:132:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:141:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:150:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:159:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:167:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:175:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/statmods/statmods.h:33:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/statmods/statmods.h:45:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/statmods/statmods.h:58:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/statmods/statmods.h:291:3: warning: no return statement in function returning non-void [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:1079:17: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:913:17: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:926:19: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/survfuns.h:85:15: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:1099:17: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:1022:17: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/survfuns.h:116:15: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:224:15: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/stats/distributions.h:210:15: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/statevals.h:82:18: warning: control reaches end of non-void function [-Wreturn-type]
  psm.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type]
  ../inst/include/hesim/statevals.h:304:18: warning: control reaches end of non-void function [-Wreturn-type]
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/hesim.Rcheck/00install.out’ for details.
* used C++ compiler: ‘g++-12 (Debian 12.2.0-10) 12.2.0’