Fix unused-variable warnings from the clang static analyzer.