Fixed warnings
This commit is contained in:
parent
a634d4b91a
commit
3fb011cae4
@ -192,7 +192,7 @@ void GmpConfigForm::on_auxData_textChanged(const QString &text)
|
||||
{
|
||||
// auxDataLength is in units of words and each byte is 2 chars in text()
|
||||
if (!overrideAuxDataLength->isChecked())
|
||||
auxDataLength->setText(QString().setNum((auxData->text().size()+7)/8));
|
||||
auxDataLength->setText(QString().setNum((text.size()+7)/8));
|
||||
}
|
||||
|
||||
GmpProtocol::GmpProtocol(StreamBase *stream, AbstractProtocol *parent)
|
||||
|
@ -359,7 +359,7 @@ QVariant Ip6Protocol::fieldData(int index, FieldAttrib attrib,
|
||||
int u, p, q;
|
||||
quint64 maskHi = 0, maskLo = 0;
|
||||
quint64 prefixHi, prefixLo;
|
||||
quint64 hostHi, hostLo;
|
||||
quint64 hostHi = 0, hostLo = 0;
|
||||
quint64 srcHi = 0, srcLo = 0;
|
||||
|
||||
switch(data.src_addr_mode())
|
||||
@ -433,7 +433,7 @@ QVariant Ip6Protocol::fieldData(int index, FieldAttrib attrib,
|
||||
int u, p, q;
|
||||
quint64 maskHi = 0, maskLo = 0;
|
||||
quint64 prefixHi, prefixLo;
|
||||
quint64 hostHi, hostLo;
|
||||
quint64 hostHi = 0, hostLo = 0;
|
||||
quint64 dstHi = 0, dstLo = 0;
|
||||
|
||||
switch(data.dst_addr_mode())
|
||||
|
@ -60,6 +60,7 @@ quint32 inline ipAddress(quint32 baseIp, int prefix, AddrMode mode, int count,
|
||||
ip = subnet | host;
|
||||
break;
|
||||
default:
|
||||
ip = 0;
|
||||
qWarning("Unhandled mode = %d", mode);
|
||||
}
|
||||
|
||||
@ -72,7 +73,7 @@ void inline ipAddress(quint64 baseIpHi, quint64 baseIpLo, int prefix,
|
||||
int u, p, q;
|
||||
quint64 maskHi = 0, maskLo = 0;
|
||||
quint64 prefixHi, prefixLo;
|
||||
quint64 hostHi, hostLo;
|
||||
quint64 hostHi = 0, hostLo = 0;
|
||||
|
||||
switch(mode)
|
||||
{
|
||||
|
@ -232,7 +232,7 @@ QVariant MldProtocol::fieldData(int index, FieldAttrib attrib,
|
||||
}
|
||||
case kGroupAddress:
|
||||
{
|
||||
quint64 grpHi, grpLo;
|
||||
quint64 grpHi = 0, grpLo = 0;
|
||||
|
||||
ipUtils::ipAddress(
|
||||
data.group_address().v6_hi(),
|
||||
|
Loading…
Reference in New Issue
Block a user