Fixed warnings with GCC 7.

This commit is contained in:
Vincent Richard 2018-08-17 21:10:48 +02:00
parent f9a4099837
commit 5eae3b1bd6
4 changed files with 14 additions and 9 deletions

View File

@ -218,6 +218,8 @@ void emailAddress::parseImpl
else
state = State_LocalPartStart;
break;
case State_LocalPartStart:
if (c == '"')

View File

@ -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")

View File

@ -508,7 +508,8 @@ size_t qpEncoder::decode(utility::inputStream& in,
break;
}
// no break here...
outBuffer[outBufferPos++] = c;
break;
}
default:
{

View File

@ -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;
}