Fix the unused variable warning message in mac os