[sanitizer] Fix build warnings.