Fix all compiler warnings.

Added -Wall to compile flags in cmake. It reported a handfull
of compiling warnings.  Now fixed.
This commit is contained in:
Ernie Pasveer
2022-04-02 13:41:17 -05:00
parent f7dca36a6c
commit 74234f3d50
6 changed files with 22 additions and 17 deletions
+3 -8
View File
@@ -113,27 +113,22 @@ QString SeerArrayVisualizerWidget::variableName () const {
void SeerArrayVisualizerWidget::setVariableAddress (const QString& address) {
unsigned long offset = 0;
bool ok = false;
if (address.startsWith("0x")) {
offset = address.toULong(&ok, 16);
bool ok = false;
address.toULong(&ok, 16);
if (ok == true) {
variableAddressLineEdit->setText(address);
}else{
variableAddressLineEdit->setText("not an address");
offset = 0;
}
}else{
variableAddressLineEdit->setText("not an address");
offset = 0;
}
//qDebug() << address << offset << ok;
arrayTableWidget->setAddressOffset(0);
}