Fix unused variable warning without asserts