fix unused variable issue in posresult