Fix unused variable warning of GCC