remove some compiler warning due to unused pinfo parameter