[sanitizer] fix gcc build warnings