Fix unused variable warning with assertions disabled.