Fix a few unreferenced local variable warnings