Fix -Werror=unused-but-set-variable