mirror of
https://github.com/epasveer/seer.git
synced 2026-08-31 01:20:45 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user