* installing to library ‘/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages’ * installing *source* package ‘divest’ ... ** package ‘divest’ successfully unpacked and MD5 sums checked ** using staged installation checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C++... yes checking whether g++-14 -std=gnu++17 accepts -g... yes checking for g++-14 -std=gnu++17 option to enable C++11 features... none needed checking for pkg-config... /usr/bin/pkg-config checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for fmemopen... yes configure: Using OpenJPEG for JPEG2000 support configure: creating ./config.status config.status: creating src/Makevars ** libs using C++ compiler: ‘g++-14 (Debian 14.2.0-6) 14.2.0’ make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpH3cIca/R.INSTALLf2b135651b875/divest/src' g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c main.cpp -o main.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c dcm2niix/jpg_0XC3.cpp -o dcm2niix/jpg_0XC3.o dcm2niix/jpg_0XC3.cpp:191: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 191 | #pragma unused(DHTnLi) // we need to increment the input file position, but we do not care what the value is dcm2niix/jpg_0XC3.cpp:265: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 265 | #pragma unused(btS1) // dummy value used to increment file position dcm2niix/jpg_0XC3.cpp:267: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 267 | #pragma unused(btS2) // dummy value used to increment file position dcm2niix/jpg_0XC3.cpp:272: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 272 | #pragma unused(SOSse) // dummy value used to increment file position dcm2niix/jpg_0XC3.cpp: In function ‘unsigned char* decode_JPEG_SOF_0XC3(const char*, int, bool, int*, int*, int*, int*, int)’: dcm2niix/jpg_0XC3.cpp:140:29: warning: variable ‘btS2’ set but not used [-Wunused-but-set-variable] 140 | unsigned char btS1, btS2, SOSse, SOSahal, btMarkerType, SOSns = 0x00; // tag | ^~~~ dcm2niix/jpg_0XC3.cpp:140:35: warning: variable ‘SOSse’ set but not used [-Wunused-but-set-variable] 140 | unsigned char btS1, btS2, SOSse, SOSahal, btMarkerType, SOSns = 0x00; // tag | ^~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c dcm2niix/nifti1_io_core.cpp -o dcm2niix/nifti1_io_core.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c dcm2niix/nii_dicom.cpp -o dcm2niix/nii_dicom.o dcm2niix/nii_dicom.cpp: In function ‘unsigned char* nii_loadImgCoreOpenJPEG(char*, nifti_1_header, TDICOMdata, int)’: dcm2niix/nii_dicom.cpp:230:16: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘long int’ [-Wsign-compare] 230 | if (sz < size) | ~~~^~~~~~ dcm2niix/nii_dicom.cpp: In function ‘TDICOMdata readDICOMx(char*, TDCMprefs*, TDTI4D*)’: dcm2niix/nii_dicom.cpp:4901:26: warning: unused variable ‘realGroupElement’ [-Wunused-variable] 4901 | uint32_t realGroupElement = groupElement; | ^~~~~~~~~~~~~~~~ dcm2niix/nii_dicom.cpp:5185:66: warning: ‘vr[1]’ may be used uninitialized [-Wmaybe-uninitialized] 5185 | if ((groupElement == kItemTag) && (vr[0] == 'O') && (vr[1] == 'B') && (isIconImageSequence)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ dcm2niix/nii_dicom.cpp:4784:14: note: ‘vr[1]’ was declared here 4784 | char vr[2]; | ^~ dcm2niix/nii_dicom.cpp:5185:48: warning: ‘vr[0]’ may be used uninitialized [-Wmaybe-uninitialized] 5185 | if ((groupElement == kItemTag) && (vr[0] == 'O') && (vr[1] == 'B') && (isIconImageSequence)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ dcm2niix/nii_dicom.cpp:4784:14: note: ‘vr[0]’ was declared here 4784 | char vr[2]; | ^~ dcm2niix/nii_dicom.cpp:7757:21: warning: ‘lLength’ may be used uninitialized [-Wmaybe-uninitialized] 7757 | int imgBytes = (int)(lLength); | ^~~~~~~~ dcm2niix/nii_dicom.cpp:4763:18: note: ‘lLength’ was declared here 4763 | uint32_t lLength; | ^~~~~~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c dcm2niix/nii_dicom_batch.cpp -o dcm2niix/nii_dicom_batch.o In file included from dcm2niix/nii_dicom_batch.cpp:22: dcm2niix/miniz.c:3805: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 3805 | #pragma unused(cur_file_ofs) dcm2niix/miniz.c:3808: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 3808 | #pragma unused(comp_remaining) dcm2niix/miniz.c:4684: warning: ignoring ‘#pragma unused ’ [-Wunknown-pragmas] 4684 | #pragma unused(cur_src_file_ofs) dcm2niix/miniz.c: In function ‘tinfl_status tinfl_decompress(tinfl_decompressor*, const mz_uint8*, size_t*, mz_uint8*, mz_uint8*, size_t*, mz_uint32)’: dcm2niix/miniz.c:1506:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 1506 | for ( i = 0; i <= 143; ++i) *p++ = 8; for ( ; i <= 255; ++i) *p++ = 9; for ( ; i <= 279; ++i) *p++ = 7; for ( ; i <= 287; ++i) *p++ = 8; | ^~~ dcm2niix/miniz.c:1506:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 1506 | for ( i = 0; i <= 143; ++i) *p++ = 8; for ( ; i <= 255; ++i) *p++ = 9; for ( ; i <= 279; ++i) *p++ = 7; for ( ; i <= 287; ++i) *p++ = 8; | ^~~ dcm2niix/miniz.c: In function ‘void tdefl_start_dynamic_block(tdefl_compressor*)’: dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:1987:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1987 | TDEFL_PUT_BITS(2, 2); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:1987:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1987 | TDEFL_PUT_BITS(2, 2); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:1989:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1989 | TDEFL_PUT_BITS(num_lit_codes - 257, 5); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:1989:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1989 | TDEFL_PUT_BITS(num_lit_codes - 257, 5); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:1990:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1990 | TDEFL_PUT_BITS(num_dist_codes - 1, 5); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:1990:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1990 | TDEFL_PUT_BITS(num_dist_codes - 1, 5); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:1993:55: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1993 | num_bit_lengths = MZ_MAX(4, (num_bit_lengths + 1)); TDEFL_PUT_BITS(num_bit_lengths - 4, 4); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:1993:55: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1993 | num_bit_lengths = MZ_MAX(4, (num_bit_lengths + 1)); TDEFL_PUT_BITS(num_bit_lengths - 4, 4); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:1994:46: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1994 | for (i = 0; (int)i < num_bit_lengths; i++) TDEFL_PUT_BITS(d->m_huff_code_sizes[2][s_tdefl_packed_code_size_syms_swizzle[i]], 3); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:1994:46: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1994 | for (i = 0; (int)i < num_bit_lengths; i++) TDEFL_PUT_BITS(d->m_huff_code_sizes[2][s_tdefl_packed_code_size_syms_swizzle[i]], 3); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:1999:5: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1999 | TDEFL_PUT_BITS(d->m_huff_codes[2][code], d->m_huff_code_sizes[2][code]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:1999:5: note: in expansion of macro ‘TDEFL_PUT_BITS’ 1999 | TDEFL_PUT_BITS(d->m_huff_codes[2][code], d->m_huff_code_sizes[2][code]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2000:21: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2000 | if (code >= 16) TDEFL_PUT_BITS(packed_code_sizes[packed_code_sizes_index++], "\02\03\07"[code - 16]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2000:21: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2000 | if (code >= 16) TDEFL_PUT_BITS(packed_code_sizes[packed_code_sizes_index++], "\02\03\07"[code - 16]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c: In function ‘void tdefl_start_static_block(tdefl_compressor*)’: dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2019:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2019 | TDEFL_PUT_BITS(1, 2); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2019:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2019 | TDEFL_PUT_BITS(1, 2); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c: In function ‘mz_bool tdefl_compress_lz_codes(tdefl_compressor*)’: dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2130:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2130 | TDEFL_PUT_BITS(d->m_huff_codes[0][s_tdefl_len_sym[match_len]], d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2130:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2130 | TDEFL_PUT_BITS(d->m_huff_codes[0][s_tdefl_len_sym[match_len]], d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2131:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2131 | TDEFL_PUT_BITS(match_len & mz_bitmasks[s_tdefl_len_extra[match_len]], s_tdefl_len_extra[match_len]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2131:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2131 | TDEFL_PUT_BITS(match_len & mz_bitmasks[s_tdefl_len_extra[match_len]], s_tdefl_len_extra[match_len]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2142:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2142 | TDEFL_PUT_BITS(d->m_huff_codes[1][sym], d->m_huff_code_sizes[1][sym]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2142:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2142 | TDEFL_PUT_BITS(d->m_huff_codes[1][sym], d->m_huff_code_sizes[1][sym]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2143:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2143 | TDEFL_PUT_BITS(match_dist & mz_bitmasks[num_extra_bits], num_extra_bits); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2143:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2143 | TDEFL_PUT_BITS(match_dist & mz_bitmasks[num_extra_bits], num_extra_bits); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2149:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2149 | TDEFL_PUT_BITS(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2149:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2149 | TDEFL_PUT_BITS(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2153:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2153 | TDEFL_PUT_BITS(d->m_huff_codes[0][256], d->m_huff_code_sizes[0][256]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2153:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2153 | TDEFL_PUT_BITS(d->m_huff_codes[0][256], d->m_huff_code_sizes[0][256]); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c: In function ‘int tdefl_flush_block(tdefl_compressor*, int)’: dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2188:5: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2188 | TDEFL_PUT_BITS(0x78, 8); TDEFL_PUT_BITS(0x01, 8); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2188:5: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2188 | TDEFL_PUT_BITS(0x78, 8); TDEFL_PUT_BITS(0x01, 8); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2188:30: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2188 | TDEFL_PUT_BITS(0x78, 8); TDEFL_PUT_BITS(0x01, 8); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2188:30: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2188 | TDEFL_PUT_BITS(0x78, 8); TDEFL_PUT_BITS(0x01, 8); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2191:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2191 | TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2191:3: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2191 | TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2203:5: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2203 | TDEFL_PUT_BITS(0, 2); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2203:5: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2203 | TDEFL_PUT_BITS(0, 2); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2204:25: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2204 | if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2204:25: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2204 | if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2207:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2207 | TDEFL_PUT_BITS(d->m_total_lz_bytes & 0xFFFF, 16); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2207:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2207 | TDEFL_PUT_BITS(d->m_total_lz_bytes & 0xFFFF, 16); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2211:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2211 | TDEFL_PUT_BITS(d->m_dict[(d->m_lz_code_buf_dict_pos + i) & TDEFL_LZ_DICT_SIZE_MASK], 8); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2211:7: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2211 | TDEFL_PUT_BITS(d->m_dict[(d->m_lz_code_buf_dict_pos + i) & TDEFL_LZ_DICT_SIZE_MASK], 8); | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2225:27: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2225 | if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2225:27: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2225 | if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2226:106: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2226 | if (d->m_flags & TDEFL_WRITE_ZLIB_HEADER) { mz_uint i, a = d->m_adler32; for (i = 0; i < 4; i++) { TDEFL_PUT_BITS((a >> 24) & 0xFF, 8); a <<= 8; } } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2226:106: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2226 | if (d->m_flags & TDEFL_WRITE_ZLIB_HEADER) { mz_uint i, a = d->m_adler32; for (i = 0; i < 4; i++) { TDEFL_PUT_BITS((a >> 24) & 0xFF, 8); a <<= 8; } } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2230:25: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2230 | mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2230:25: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2230 | mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2230:67: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2230 | mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2230:67: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2230 | mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1916:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1916 | if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ | ^~ dcm2niix/miniz.c:2230:141: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2230 | mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c:1918:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1918 | d->m_bit_buffer >>= 8; \ | ^ dcm2niix/miniz.c:2230:141: note: in expansion of macro ‘TDEFL_PUT_BITS’ 2230 | mz_uint i, z = 0; TDEFL_PUT_BITS(0, 3); if (d->m_bits_in) { TDEFL_PUT_BITS(0, 8 - d->m_bits_in); } for (i = 2; i; --i, z ^= 0xFFFF) { TDEFL_PUT_BITS(z & 0xFFFF, 16); } | ^~~~~~~~~~~~~~ dcm2niix/miniz.c: In function ‘void tdefl_find_match(tdefl_compressor*, mz_uint, mz_uint, mz_uint, mz_uint*, mz_uint*)’: dcm2niix/miniz.c:2324:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 2324 | if (!dist) break; p = s; q = d->m_dict + probe_pos; for (probe_len = 0; probe_len < max_match_len; probe_len++) if (*p++ != *q++) break; | ^~ dcm2niix/miniz.c:2324:23: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 2324 | if (!dist) break; p = s; q = d->m_dict + probe_pos; for (probe_len = 0; probe_len < max_match_len; probe_len++) if (*p++ != *q++) break; | ^ dcm2niix/nii_dicom_batch.cpp: In function ‘int* nii_saveDTI(char*, int, TDCMsort*, TDICOMdata*, TDCMopts, int, TDTI4D*, int*, int)’: dcm2niix/nii_dicom_batch.cpp:2721:14: warning: variable ‘isIsotropic’ set but not used [-Wunused-but-set-variable] 2721 | bool isIsotropic = false; | ^~~~~~~~~~~ dcm2niix/nii_dicom_batch.cpp: In function ‘void heudiconvStr(char*)’: dcm2niix/nii_dicom_batch.cpp:3479:20: warning: unused variable ‘kTempPathSeparator’ [-Wunused-variable] 3479 | const char kTempPathSeparator = '\a'; | ^~~~~~~~~~~~~~~~~~ dcm2niix/nii_dicom_batch.cpp:3480:14: warning: unused variable ‘hasCaret’ [-Wunused-variable] 3480 | bool hasCaret = false; | ^~~~~~~~ dcm2niix/nii_dicom_batch.cpp: In function ‘void setBidsSiemens(TDICOMdata*, int, int, const char*)’: dcm2niix/nii_dicom_batch.cpp:6818:23: warning: unused variable ‘pf’ [-Wunused-variable] 6818 | float pf = 1.0f; // partial fourier | ^~ dcm2niix/nii_dicom_batch.cpp: In function ‘void setBidsPhilips(TDICOMdata*, int, int)’: dcm2niix/nii_dicom_batch.cpp:7103:14: warning: variable ‘isDirLabel’ set but not used [-Wunused-but-set-variable] 7103 | bool isDirLabel = false; // report phase encoding direction | ^~~~~~~~~~ dcm2niix/nii_dicom_batch.cpp: In function ‘void setBidsGE(TDICOMdata*, int, int, const char*)’: dcm2niix/nii_dicom_batch.cpp:7281:13: warning: variable ‘nVol’ set but not used [-Wunused-but-set-variable] 7281 | int nVol = 1; | ^~~~ dcm2niix/nii_dicom_batch.cpp: In function ‘int saveDcm2NiiCore(int, TDCMsort*, TDICOMdata*, TSearchList*, TDCMopts, TDTI4D*, int)’: dcm2niix/nii_dicom_batch.cpp:8551:31: warning: unused variable ‘shearMat’ [-Wunused-variable] 8551 | mat33 shearMat; | ^~~~~~~~ dcm2niix/nii_dicom_batch.cpp: In function ‘int nii_loadDirCore(char*, TDCMopts*)’: dcm2niix/nii_dicom_batch.cpp:9674:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare] 9674 | for (int i = 0; i < nameList.numItems; i++) | ~~^~~~~~~~~~~~~~~~~~~ dcm2niix/nii_dicom_batch.cpp: In function ‘int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)’: dcm2niix/nii_dicom_batch.cpp:9249:20: warning: ‘dir.tinydir_dir::has_next’ may be used uninitialized [-Wmaybe-uninitialized] 9249 | while (dir.has_next) { | ~~~~^~~~~~~~ dcm2niix/nii_dicom_batch.cpp:9247:21: note: ‘dir’ declared here 9247 | tinydir_dir dir; | ^~~ dcm2niix/nii_dicom_batch.cpp:9249:20: warning: ‘dir.tinydir_dir::has_next’ may be used uninitialized [-Wmaybe-uninitialized] 9249 | while (dir.has_next) { | ~~~~^~~~~~~~ dcm2niix/nii_dicom_batch.cpp:9247:21: note: ‘dir’ declared here 9247 | tinydir_dir dir; | ^~~ dcm2niix/nii_dicom_batch.cpp: In function ‘int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)’: dcm2niix/nii_dicom_batch.cpp:9966:20: warning: ‘dir.tinydir_dir::has_next’ may be used uninitialized [-Wmaybe-uninitialized] 9966 | while (dir.has_next) { | ~~~~^~~~~~~~ dcm2niix/nii_dicom_batch.cpp:9964:21: note: ‘dir’ declared here 9964 | tinydir_dir dir; | ^~~ dcm2niix/nii_dicom_batch.cpp:9966:20: warning: ‘dir.tinydir_dir::has_next’ may be used uninitialized [-Wmaybe-uninitialized] 9966 | while (dir.has_next) { | ~~~~^~~~~~~~ dcm2niix/nii_dicom_batch.cpp:9964:21: note: ‘dir’ declared here 9964 | tinydir_dir dir; | ^~~ g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c dcm2niix/nii_ortho.cpp -o dcm2niix/nii_ortho.o g++-14 -std=gnu++17 -I"/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include" -DNDEBUG -DUSING_R -I/usr/include/openjpeg-2.5 -DHAVE_FMEMOPEN -I. -Idcm2niix -Iujpeg -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/Rcpp/include' -I'/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/RNifti/include' -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -pedantic -mtune=native -c ujpeg/ujpeg.cpp -o ujpeg/ujpeg.o g++-14 -std=gnu++17 -shared -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -Wl,-O1 -o divest.so main.o dcm2niix/jpg_0XC3.o dcm2niix/nifti1_io_core.o dcm2niix/nii_dicom.o dcm2niix/nii_dicom_batch.o dcm2niix/nii_ortho.o ujpeg/ujpeg.o -lopenjp2 -L/home/hornik/tmp/R.check/r-patched-gcc/Work/build/lib -lR make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpH3cIca/R.INSTALLf2b135651b875/divest/src' make[1]: Entering directory '/home/hornik/tmp/scratch/RtmpH3cIca/R.INSTALLf2b135651b875/divest/src' make[1]: Leaving directory '/home/hornik/tmp/scratch/RtmpH3cIca/R.INSTALLf2b135651b875/divest/src' installing to /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/00LOCK-divest/00new/divest/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices converting help for package ‘divest’ finding HTML links ... done bidsJson html divest.capabilities html imageAttributes html readDicom html ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (divest)