[client-agent] fix compiler warnings