Fixed gcc warnings.

This commit is contained in:
NissimHadar 2018-10-09 12:02:42 -07:00
parent 3ebf8ad293
commit 25b3a8c75c
2 changed files with 6 additions and 10 deletions

View file

@ -463,13 +463,8 @@ void TestRunner::checkTime() {
// Check the time // Check the time
bool timeToRun{ false }; bool timeToRun{ false };
QTime time = now.time(); QTime time = now.time();
int h = time.hour();
int m = time.minute();
for (int i = 0; i < std::min(_timeEditCheckboxes.size(), _timeEdits.size()); ++i) { for (size_t i = 0; i < std::min(_timeEditCheckboxes.size(), _timeEdits.size()); ++i) {
bool is = _timeEditCheckboxes[i]->isChecked();
int hh = _timeEdits[i]->time().hour();
int mm = _timeEdits[i]->time().minute();
if (_timeEditCheckboxes[i]->isChecked() && (_timeEdits[i]->time().hour() == now.time().hour()) && if (_timeEditCheckboxes[i]->isChecked() && (_timeEdits[i]->time().hour() == now.time().hour()) &&
(_timeEdits[i]->time().minute() == now.time().minute())) { (_timeEdits[i]->time().minute() == now.time().minute())) {
timeToRun = true; timeToRun = true;
@ -543,7 +538,7 @@ void TestRunner::parseBuildInformation() {
QString platformOfInterest; QString platformOfInterest;
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
platformOfInterest = "windows"; platformOfInterest = "windows";
#else if Q_OS_MAC #elif Q_OS_MAC
platformOfInterest = "mac"; platformOfInterest = "mac";
#endif #endif
QDomElement element = domDocument.documentElement(); QDomElement element = domDocument.documentElement();
@ -611,7 +606,8 @@ void Worker::setCommandLine(const QString& commandLine) {
_commandLine = commandLine; _commandLine = commandLine;
} }
void Worker::runCommand() { int Worker::runCommand() {
system(_commandLine.toStdString().c_str()); int result = system(_commandLine.toStdString().c_str());
emit commandComplete(); emit commandComplete();
return result;
} }

View file

@ -138,7 +138,7 @@ public:
void setCommandLine(const QString& commandLine); void setCommandLine(const QString& commandLine);
public slots: public slots:
void runCommand(); int runCommand();
signals: signals:
void commandComplete(); void commandComplete();