clang compile error because of unused variable