Fix NDEBUG unused variable warning.