Fix -Wunused-variable warning