fix clang warnings for -Wunused-but-set-variable
Fix a few cases where a variable is set but not read
This does not affect the exception list in the CI. They only show up on later versions of clang. CI uses version 11.
Fix a few cases where a variable is set but not read
This does not affect the exception list in the CI. They only show up on later versions of clang. CI uses version 11.