mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-16 15:57:38 +00:00
Fixed GCC 12 warnings
This commit is contained in:
parent
e1478bfa94
commit
e6c81d7166
3 changed files with 11 additions and 3 deletions
|
@ -66,7 +66,6 @@ Storage<DaemonClient> DaemonClient::m_storage;
|
|||
|
||||
static const char* kBlocktemplateBlob = "blocktemplate_blob";
|
||||
static const char* kBlockhashingBlob = "blockhashing_blob";
|
||||
static const char* kLastError = "lasterror";
|
||||
static const char *kGetHeight = "/getheight";
|
||||
static const char *kGetInfo = "/getinfo";
|
||||
static const char *kHash = "hash";
|
||||
|
|
|
@ -240,10 +240,17 @@ namespace randomx {
|
|||
return x;
|
||||
}
|
||||
|
||||
void cleanup() {
|
||||
for (unsigned i = 0; i < RegistersCount; ++i) {
|
||||
registerUsage[i] = -1;
|
||||
}
|
||||
nreg = nullptr;
|
||||
}
|
||||
|
||||
private:
|
||||
static const int_reg_t zero;
|
||||
int registerUsage[RegistersCount];
|
||||
NativeRegisterFile* nreg;
|
||||
int registerUsage[RegistersCount] = {};
|
||||
NativeRegisterFile* nreg = nullptr;
|
||||
|
||||
static void* getScratchpadAddress(InstructionByteCode& ibc, uint8_t* scratchpad) {
|
||||
uint32_t addr = (*ibc.isrc + ibc.imm) & ibc.memMask;
|
||||
|
|
|
@ -104,6 +104,8 @@ namespace randomx {
|
|||
|
||||
for (unsigned i = 0; i < RegisterCountFlt; ++i)
|
||||
rx_store_vec_f128(®.e[i].lo, nreg.e[i]);
|
||||
|
||||
cleanup();
|
||||
}
|
||||
|
||||
template<int softAes>
|
||||
|
|
Loading…
Reference in a new issue