Commit 433c0dee authored by Nate Graham's avatar Nate Graham
Browse files

Don't define isSimulation() if not building simulation bits

...Because in this case it's not used at all and generates a compiler
warning.
parent bdae4ab8
......@@ -17,10 +17,12 @@
#include "simulationdevicenotifier.h"
#endif
#ifdef WITH_SIMULATION
static bool isSimulation()
{
return qEnvironmentVariableIntValue("PLASMA_DISKS_SIMULATION") == 1;
}
#endif
template<class... Args>
static std::unique_ptr<AbstractSMARTCtl> make_unique_smartctl(Args &&... args)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment