remove warnings of cbufp code