Fix compile warning when WITH_RANDOMX=OFF

This commit is contained in:
Tony Butler 2021-09-19 18:12:46 -06:00
parent 6d66051d92
commit ef6011ac12

View file

@ -274,9 +274,9 @@ void xmrig::CpuWorker<N>::start()
bool valid = true;
uint8_t miner_signature_saved[64];
uint8_t* miner_signature_ptr = m_job.blob() + m_job.nonceOffset() + m_job.nonceSize();
# ifdef XMRIG_ALGO_RANDOMX
uint8_t* miner_signature_ptr = m_job.blob() + m_job.nonceOffset() + m_job.nonceSize();
if (job.algorithm().family() == Algorithm::RANDOM_X) {
if (first) {
first = false;