mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 06:10:42 +01:00
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:
parent
84377d48cf
commit
41e2001855
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user