Fixed warnings with GCC 7.
This commit is contained in:
parent
f9a4099837
commit
5eae3b1bd6
@ -218,6 +218,8 @@ void emailAddress::parseImpl
|
||||
else
|
||||
state = State_LocalPartStart;
|
||||
|
||||
break;
|
||||
|
||||
case State_LocalPartStart:
|
||||
|
||||
if (c == '"')
|
||||
|
@ -1996,6 +1996,8 @@ public:
|
||||
if (name == "marked")
|
||||
m_type = MARKED;
|
||||
|
||||
break;
|
||||
|
||||
case 'n':
|
||||
|
||||
if (name == "noinferiors")
|
||||
@ -2003,6 +2005,8 @@ public:
|
||||
else if (name == "noselect")
|
||||
m_type = NOSELECT;
|
||||
|
||||
break;
|
||||
|
||||
case 's':
|
||||
|
||||
if (name == "sent")
|
||||
|
@ -508,7 +508,8 @@ size_t qpEncoder::decode(utility::inputStream& in,
|
||||
break;
|
||||
}
|
||||
|
||||
// no break here...
|
||||
outBuffer[outBufferPos++] = c;
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
|
@ -296,14 +296,12 @@ size_t uuEncoder::decode(utility::inputStream& in,
|
||||
|
||||
const size_t n = std::min(inLength - i, static_cast <size_t>(3));
|
||||
|
||||
switch (n)
|
||||
{
|
||||
default:
|
||||
case 3: outBuffer[j + 2] = static_cast <byte_t>(UUDECODE(c3) << 6 | UUDECODE(c4));
|
||||
case 2: outBuffer[j + 1] = static_cast <byte_t>(UUDECODE(c2) << 4 | UUDECODE(c3) >> 2);
|
||||
case 1: outBuffer[j] = static_cast <byte_t>(UUDECODE(c1) << 2 | UUDECODE(c2) >> 4);
|
||||
case 0: break;
|
||||
}
|
||||
if (n >= 3)
|
||||
outBuffer[j + 2] = static_cast <byte_t>(UUDECODE(c3) << 6 | UUDECODE(c4));
|
||||
if (n >= 2)
|
||||
outBuffer[j + 1] = static_cast <byte_t>(UUDECODE(c2) << 4 | UUDECODE(c3) >> 2);
|
||||
if (n >= 1)
|
||||
outBuffer[j] = static_cast <byte_t>(UUDECODE(c1) << 2 | UUDECODE(c2) >> 4);
|
||||
|
||||
total += n;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user