re-enable some compiler warnings that should be dealt with

I also think that these were already dealt with, as the testbench
did not bring up any warnings lately.
This commit is contained in:
Rainer Gerhards 2016-01-28 14:50:18 +01:00
parent 84377d48cf
commit 41e2001855
2 changed files with 0 additions and 4 deletions

View File

@ -213,7 +213,6 @@ fixInvldMBSeq(instanceData *pData, uchar *msg, int lenMsg, int strtIdx, int *end
/* startIdx and seqLen always set if bytesLeft is set,
which is required before this function is called */
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
*endIdx = strtIdx + seqLen;
if(*endIdx > lenMsg)
*endIdx = lenMsg;
@ -236,7 +235,6 @@ doUTF8(instanceData *pData, uchar *msg, int lenMsg)
if((c & 0xc0) != 0x80) {
/* sequence invalid, invalidate all bytes
startIdx is always set if bytesLeft is set */
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
fixInvldMBSeq(pData, msg, lenMsg, strtIdx, &endIdx,
seqLen);
i = endIdx - 1;
@ -249,7 +247,6 @@ doUTF8(instanceData *pData, uchar *msg, int lenMsg)
if(codepoint > 0x10FFFF) {
/* sequence invalid, invalidate all bytes
startIdx is always set if bytesLeft is set */
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
fixInvldMBSeq(pData, msg, lenMsg,
strtIdx, &endIdx,
seqLen);

View File

@ -262,7 +262,6 @@ CODESTARTparse2
/* if we reach this point, we have a wellformed message and can persist the values */
MsgSetTAG(pMsg, bufParseTAG, i);
/* if bOriginPresent !=0 iHostname gets initialized */
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
if(pInst->bOriginPresent)
MsgSetHOSTNAME(pMsg, bufParseHOSTNAME, iHostname);
MsgSetMSGoffs(pMsg, p2parse - pMsg->pszRawMsg);