Browse Source

Fix some compilation warnings

cl-refactor
Paweł Bylica 8 years ago
parent
commit
49dfbc0cf0
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 8
      ethminer/MinerAux.h
  2. 1
      libethash-cl/ethash_cl_miner.h

8
ethminer/MinerAux.h

@ -958,9 +958,13 @@ private:
if (client.isConnected()) if (client.isConnected())
{ {
if (client.current()) if (client.current())
{
minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats(); minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats();
}
else if (client.waitState() == MINER_WAIT_STATE_WORK) else if (client.waitState() == MINER_WAIT_STATE_WORK)
{
minelog << "Waiting for work package..."; minelog << "Waiting for work package...";
}
} }
this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod)); this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod));
} }
@ -993,9 +997,13 @@ private:
if (client.isConnected()) if (client.isConnected())
{ {
if (client.current()) if (client.current())
{
minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats(); minelog << "Mining on PoWhash" << "#" + (client.currentHeaderHash().hex().substr(0, 8)) << ": " << mp << f.getSolutionStats();
}
else if (client.waitState() == MINER_WAIT_STATE_WORK) else if (client.waitState() == MINER_WAIT_STATE_WORK)
{
minelog << "Waiting for work package..."; minelog << "Waiting for work package...";
}
} }
this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod)); this_thread::sleep_for(chrono::milliseconds(m_farmRecheckPeriod));
} }

1
libethash-cl/ethash_cl_miner.h

@ -10,7 +10,6 @@
#elif defined(__GNUC__) #elif defined(__GNUC__)
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wignored-qualifiers" #pragma GCC diagnostic ignored "-Wignored-qualifiers"
#pragma GCC diagnostic ignored "-Wignored-attributes"
#endif #endif
#include "CL/cl.hpp" #include "CL/cl.hpp"

Loading…
Cancel
Save