Merge pull request #2591 from Spudz76/dev-fixCompileNoRX

Fix compile warning/crash when WITH_RANDOMX=OFF
This commit is contained in:
xmrig 2021-09-20 10:50:00 +07:00 committed by GitHub
commit a459dd7741
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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