add Q_UNUSED for an assert var to fix release compile