Found the following significant warnings:
  ../inst/include/RNifti/NiftiImage_impl.h:99:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  main.cpp:47:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  ../inst/include/RNifti/NiftiImage_impl.h:246:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  ../inst/include/RNifti/NiftiImage_impl.h:252:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti1_io.c:469:24: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti1_io.c:1151:33: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti2_io.c:549:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti2_io.c:555:30: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti1_io.c:4417:15: warning: format specifies type 'int' but the argument has type 'off_t' (aka 'long') [-Wformat]
  niftilib/nifti1_io.c:4421:15: warning: format specifies type 'int' but the argument has type 'off_t' (aka 'long') [-Wformat]
  niftilib/nifti1_io.c:5117:39: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti2_io.c:1257:33: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti1_io.c:7091:59: warning: format specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
  niftilib/nifti2_io.c:4492:34: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti2_io.c:4588:34: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti2_io.c:6114:75: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long') [-Wformat]
  niftilib/nifti2_io.c:6959:39: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
  niftilib/nifti2_io.c:9281:68: warning: format specifies type 'int' but the argument has type 'int64_t' (aka 'long') [-Wformat]
  niftilib/nifti2_io.c:9412:37: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
See ‘/data/gannet/ripley/R/packages/tests-clang/RNifti.Rcheck/00install.out’ for details.
* used C compiler: ‘clang version 17.0.5’
* used C++ compiler: ‘clang version 17.0.5’