[fix] fix compile warning with c++ (nps)