Fix -Wunused-function in Release build.