-Werror,-Wunused-but-set-variable (Clang 13 trunk)
...as seen when building LibreOffice
In file included from svl/source/misc/gridprinter.cxx:16: In file included from workdir/UnpackedTarball/mdds/include/mdds/multi_type_matrix.hpp:37: In file included from workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector.hpp:1358: workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_def.inl:851:15: error: variable 'start_pos' set but not used [-Werror,-Wunused-but-set-variable] size_type start_pos = m_cur_size; ^ workdir/UnpackedTarball/mdds/include/mdds/multi_type_vector_def.inl:3926:15: error: variable 'start_row_itr' set but not used [-Werror,-Wunused-but-set-variable] size_type start_row_itr = start_row_in_block1; ^
(see https://git.libreoffice.org/core/+/13666bb9e5d5a45210322c339efef776dbc59f3f%5E!/ "external/mdds: -Werror,-Wunused-but-set-variable (Clang 13 trunk)")