Fix unused warning in non-debug build