mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-11 23:05:49 -05:00
Fix warning: ‘op’ may be used uninitialized in this function
../../../trunk/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp: In
member function ‘void IdDetailsDialog::modifyReputation()’:
../../../trunk/retroshare-gui/src/gui/Identity/IdDetailsDialog.cpp:
327:30: warning: ‘op’ may be used uninitialized in this function [-
Wmaybe-uninitialized]
327 | rsReputations->setOwnOpinion(id,op);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
This commit is contained in:
parent
e3846f981c
commit
546e87fd39
1 changed files with 2 additions and 2 deletions
|
|
@ -322,7 +322,7 @@ void IdDetailsDialog::modifyReputation()
|
||||||
case 2: op = RsOpinion::POSITIVE; break;
|
case 2: op = RsOpinion::POSITIVE; break;
|
||||||
default:
|
default:
|
||||||
std::cerr << "Wrong value from opinion combobox. Bug??" << std::endl;
|
std::cerr << "Wrong value from opinion combobox. Bug??" << std::endl;
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
rsReputations->setOwnOpinion(id,op);
|
rsReputations->setOwnOpinion(id,op);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue