[sanitizer] fix a gcc warning