* installing *source* package 'divest' ...
** package 'divest' successfully unpacked and MD5 sums checked
** using staged installation
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
using C++ compiler: 'g++.exe (GCC) 13.3.0'
make[1]: Entering directory '/d/temp/2025_10_21_12_46_10_10564/RtmpKQ4DDt/R.INSTALL1fb82bcda1b/divest/src'
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c main.cpp -o main.o
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -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++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dcm2niix/nifti1_io_core.cpp -o dcm2niix/nifti1_io_core.o
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dcm2niix/nii_dicom.cpp -o dcm2niix/nii_dicom.o
dcm2niix/nii_dicom.cpp: In function 'TDICOMdata readDICOMx(char*, TDCMprefs*, TDTI4D*)':
dcm2niix/nii_dicom.cpp:4876:26: warning: unused variable 'realGroupElement' [-Wunused-variable]
4876 | uint32_t realGroupElement = groupElement;
| ^~~~~~~~~~~~~~~~
dcm2niix/nii_dicom.cpp:5160:66: warning: 'vr[1]' may be used uninitialized [-Wmaybe-uninitialized]
5160 | if ((groupElement == kItemTag) && (vr[0] == 'O') && (vr[1] == 'B') && (isIconImageSequence))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
dcm2niix/nii_dicom.cpp:4764:14: note: 'vr[1]' was declared here
4764 | char vr[2];
| ^~
dcm2niix/nii_dicom.cpp:5160:48: warning: 'vr[0]' may be used uninitialized [-Wmaybe-uninitialized]
5160 | if ((groupElement == kItemTag) && (vr[0] == 'O') && (vr[1] == 'B') && (isIconImageSequence))
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
dcm2niix/nii_dicom.cpp:4764:14: note: 'vr[0]' was declared here
4764 | char vr[2];
| ^~
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -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:2727:14: warning: variable 'isIsotropic' set but not used [-Wunused-but-set-variable]
2727 | bool isIsotropic = false;
| ^~~~~~~~~~~
dcm2niix/nii_dicom_batch.cpp: In function 'void heudiconvStr(char*)':
dcm2niix/nii_dicom_batch.cpp:3485:20: warning: unused variable 'kTempPathSeparator' [-Wunused-variable]
3485 | const char kTempPathSeparator = '\a';
| ^~~~~~~~~~~~~~~~~~
dcm2niix/nii_dicom_batch.cpp:3486:14: warning: unused variable 'hasCaret' [-Wunused-variable]
3486 | bool hasCaret = false;
| ^~~~~~~~
dcm2niix/nii_dicom_batch.cpp: In function 'void setBidsSiemens(TDICOMdata*, int, int, const char*)':
dcm2niix/nii_dicom_batch.cpp:6833:23: warning: unused variable 'pf' [-Wunused-variable]
6833 | float pf = 1.0f; // partial fourier
| ^~
dcm2niix/nii_dicom_batch.cpp: In function 'void setBidsPhilips(TDICOMdata*, int, int)':
dcm2niix/nii_dicom_batch.cpp:7118:14: warning: variable 'isDirLabel' set but not used [-Wunused-but-set-variable]
7118 | 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:7296:13: warning: variable 'nVol' set but not used [-Wunused-but-set-variable]
7296 | int nVol = 1;
| ^~~~
dcm2niix/nii_dicom_batch.cpp: In function 'int saveDcm2NiiCore(int, TDCMsort*, TDICOMdata*, TSearchList*, TDCMopts, TDTI4D*, int)':
dcm2niix/nii_dicom_batch.cpp:8566:31: warning: unused variable 'shearMat' [-Wunused-variable]
8566 | mat33 shearMat;
| ^~~~~~~~
dcm2niix/nii_dicom_batch.cpp: In function 'int nii_loadDirCore(char*, TDCMopts*)':
dcm2niix/nii_dicom_batch.cpp:9690:35: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
9690 | for (int i = 0; i < nameList.numItems; i++)
| ~~^~~~~~~~~~~~~~~~~~~
In file included from dcm2niix/nii_dicom_batch.cpp:29:
In function 'void tinydir_close(tinydir_dir*)',
inlined from 'void tinydir_close(tinydir_dir*)' at dcm2niix/tinydir.h:214:6,
inlined from 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)' at dcm2niix/nii_dicom_batch.cpp:9304:15:
dcm2niix/tinydir.h:232:18: warning: 'dir.tinydir_dir::_d' may be used uninitialized [-Wmaybe-uninitialized]
232 | if (dir->_d) {
| ~~~~~^~
dcm2niix/nii_dicom_batch.cpp: In function 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)':
dcm2niix/nii_dicom_batch.cpp:9262:21: note: 'dir' declared here
9262 | tinydir_dir dir;
| ^~~
dcm2niix/nii_dicom_batch.cpp:9264:20: warning: 'dir.tinydir_dir::has_next' may be used uninitialized [-Wmaybe-uninitialized]
9264 | while (dir.has_next) {
| ~~~~^~~~~~~~
dcm2niix/nii_dicom_batch.cpp:9262:21: note: 'dir' declared here
9262 | tinydir_dir dir;
| ^~~
In function 'void tinydir_close(tinydir_dir*)',
inlined from 'void tinydir_close(tinydir_dir*)' at dcm2niix/tinydir.h:214:6,
inlined from 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)' at dcm2niix/nii_dicom_batch.cpp:9304:15:
dcm2niix/tinydir.h:232:18: warning: 'dir.tinydir_dir::_d' may be used uninitialized [-Wmaybe-uninitialized]
232 | if (dir->_d) {
| ~~~~~^~
dcm2niix/nii_dicom_batch.cpp: In function 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)':
dcm2niix/nii_dicom_batch.cpp:9262:21: note: 'dir' declared here
9262 | tinydir_dir dir;
| ^~~
dcm2niix/nii_dicom_batch.cpp:9264:20: warning: 'dir.tinydir_dir::has_next' may be used uninitialized [-Wmaybe-uninitialized]
9264 | while (dir.has_next) {
| ~~~~^~~~~~~~
dcm2niix/nii_dicom_batch.cpp:9262:21: note: 'dir' declared here
9262 | tinydir_dir dir;
| ^~~
In function 'void tinydir_close(tinydir_dir*)',
inlined from 'void tinydir_close(tinydir_dir*)' at dcm2niix/tinydir.h:214:6,
inlined from 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)' at dcm2niix/nii_dicom_batch.cpp:9304:15:
dcm2niix/tinydir.h:222:18: warning: 'dir.tinydir_dir::_files' may be used uninitialized [-Wmaybe-uninitialized]
222 | if (dir->_files != NULL) {
| ~~~~~^~~~~~
dcm2niix/nii_dicom_batch.cpp: In function 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)':
dcm2niix/nii_dicom_batch.cpp:9262:21: note: 'dir' declared here
9262 | tinydir_dir dir;
| ^~~
In function 'int tinydir_readfile(const tinydir_dir*, tinydir_file*)',
inlined from 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)' at dcm2niix/nii_dicom_batch.cpp:9267:19:
dcm2niix/tinydir.h:281:18: warning: 'dir.tinydir_dir::_e' may be used uninitialized [-Wmaybe-uninitialized]
281 | if (dir->_e == NULL)
| ~~~~~^~
dcm2niix/nii_dicom_batch.cpp: In function 'int searchDirForDICOM(char*, TSearchList*, int, int, TDCMopts*)':
dcm2niix/nii_dicom_batch.cpp:9262:21: note: 'dir' declared here
9262 | tinydir_dir dir;
| ^~~
dcm2niix/nii_dicom_batch.cpp: In function 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)':
dcm2niix/nii_dicom_batch.cpp:9982:20: warning: 'dir.tinydir_dir::has_next' may be used uninitialized [-Wmaybe-uninitialized]
9982 | while (dir.has_next) {
| ~~~~^~~~~~~~
dcm2niix/nii_dicom_batch.cpp:9980:21: note: 'dir' declared here
9980 | tinydir_dir dir;
| ^~~
dcm2niix/nii_dicom_batch.cpp:9982:20: warning: 'dir.tinydir_dir::has_next' may be used uninitialized [-Wmaybe-uninitialized]
9982 | while (dir.has_next) {
| ~~~~^~~~~~~~
dcm2niix/nii_dicom_batch.cpp:9980:21: note: 'dir' declared here
9980 | tinydir_dir dir;
| ^~~
In function 'int tinydir_readfile(const tinydir_dir*, tinydir_file*)',
inlined from 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)' at dcm2niix/nii_dicom_batch.cpp:9985:19:
dcm2niix/tinydir.h:281:18: warning: 'dir.tinydir_dir::_e' may be used uninitialized [-Wmaybe-uninitialized]
281 | if (dir->_e == NULL)
| ~~~~~^~
dcm2niix/nii_dicom_batch.cpp: In function 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)':
dcm2niix/nii_dicom_batch.cpp:9980:21: note: 'dir' declared here
9980 | tinydir_dir dir;
| ^~~
In function 'void tinydir_close(tinydir_dir*)',
inlined from 'void tinydir_close(tinydir_dir*)' at dcm2niix/tinydir.h:214:6,
inlined from 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)' at dcm2niix/nii_dicom_batch.cpp:9999:15:
dcm2niix/tinydir.h:222:18: warning: 'dir.tinydir_dir::_files' may be used uninitialized [-Wmaybe-uninitialized]
222 | if (dir->_files != NULL) {
| ~~~~~^~~~~~
dcm2niix/nii_dicom_batch.cpp: In function 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)':
dcm2niix/nii_dicom_batch.cpp:9980:21: note: 'dir' declared here
9980 | tinydir_dir dir;
| ^~~
In function 'void tinydir_close(tinydir_dir*)',
inlined from 'void tinydir_close(tinydir_dir*)' at dcm2niix/tinydir.h:214:6,
inlined from 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)' at dcm2niix/nii_dicom_batch.cpp:9999:15:
dcm2niix/tinydir.h:232:18: warning: 'dir.tinydir_dir::_d' may be used uninitialized [-Wmaybe-uninitialized]
232 | if (dir->_d) {
| ~~~~~^~
dcm2niix/nii_dicom_batch.cpp: In function 'int nii_loadDirOneDirAtATime(char*, TDCMopts*, int, int)':
dcm2niix/nii_dicom_batch.cpp:9980:21: note: 'dir' declared here
9980 | tinydir_dir dir;
| ^~~
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c dcm2niix/nii_ortho.cpp -o dcm2niix/nii_ortho.o
g++ -std=gnu++17 -I"D:/RCompile/recent/R-4.4.3/include" -DNDEBUG -DUSING_R -DmyDisableOpenJPEG -I. -Idcm2niix -Iujpeg -I'D:/RCompile/CRANpkg/lib/4.4/Rcpp/include' -I'D:/RCompile/CRANpkg/lib/4.4/RNifti/include' -I"d:/rtools44/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c ujpeg/ujpeg.cpp -o ujpeg/ujpeg.o
g++ -std=gnu++17 -shared -s -static-libgcc -o divest.dll tmp.def 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 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib/x64 -Ld:/rtools44/x86_64-w64-mingw32.static.posix/lib -LD:/RCompile/recent/R-4.4.3/bin/x64 -lR
make[1]: Leaving directory '/d/temp/2025_10_21_12_46_10_10564/RtmpKQ4DDt/R.INSTALL1fb82bcda1b/divest/src'
make[1]: Entering directory '/d/temp/2025_10_21_12_46_10_10564/RtmpKQ4DDt/R.INSTALL1fb82bcda1b/divest/src'
make[1]: Leaving directory '/d/temp/2025_10_21_12_46_10_10564/RtmpKQ4DDt/R.INSTALL1fb82bcda1b/divest/src'
installing to d:/Rcompile/CRANpkg/lib/4.4/00LOCK-divest/00new/divest/libs/x64
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* MD5 sums
packaged installation of 'divest' as divest_1.2.0.zip
* DONE (divest)