Found the following significant warnings:
  dcm2niix/nii_dicom.cpp:2788:30: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom.cpp:2788:30: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom.cpp:2800:28: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom.cpp:2800:28: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  dcm2niix/nii_dicom.cpp:2800:28: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom.cpp:3358:28: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom.cpp:3358:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  dcm2niix/nii_dicom.cpp:3358:28: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int' [-Wformat=]
  dcm2niix/nii_dicom.cpp:3358:28: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom.cpp:3440:28: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom.cpp:3440:28: warning: format '%d' expects argument of type 'int', but argument 2 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  dcm2niix/nii_dicom.cpp:3440:28: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int' [-Wformat=]
  dcm2niix/nii_dicom.cpp:3440:28: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom.cpp:4109:28: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom.cpp:4109:28: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  dcm2niix/nii_dicom.cpp:4109:28: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom.cpp:4554:44: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom.cpp:4554:44: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  dcm2niix/nii_dicom.cpp:4554:44: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom_batch.cpp:7176:36: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom_batch.cpp:7176:36: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'size_t' {aka 'long long unsigned int'} [-Wformat=]
  dcm2niix/nii_dicom_batch.cpp:7176:36: warning: too many arguments for format [-Wformat-extra-args]
  dcm2niix/nii_dicom_batch.cpp:7729:28: warning: unknown conversion type character 'z' in format [-Wformat=]
  dcm2niix/nii_dicom_batch.cpp:7729:28: warning: too many arguments for format [-Wformat-extra-args]
See 'd:/Rcompile/CRANpkg/local/4.4/divest.Rcheck/00install.out' for details.
* used C++ compiler: 'g++.exe (GCC) 12.3.0'