mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
Fix warning: this statement may fall through
/libretroshare/src/gxstrans/p3gxstrans.cc:870: warning: this statement may fall through [-Wimplicit-fallthrough=] pr.sent_ts = time(NULL) ; //pr.mailItem.meta.mPublishTs = time(NULL); /libretroshare/src/gxstrans/p3gxstrans.cc:872: here case GxsTransSendStatus::PENDING_PREFERRED_GROUP: /libretroshare/src/gxstrans/p3gxstrans.cc:883: warning: this statement may fall through [-Wimplicit-fallthrough=] pr.group_id = mPreferredGroupId ; //pr.mailItem.meta.mGroupId = mPreferredGroupId; /libretroshare/src/gxstrans/p3gxstrans.cc:885: here case GxsTransSendStatus::PENDING_RECEIPT_CREATE: /libretroshare/src/gxstrans/p3gxstrans.cc:906: warning: this statement may fall through [-Wimplicit-fallthrough=] pr.presignedReceipt.msg.setBinData(&grsrz[0], grsz); /libretroshare/src/gxstrans/p3gxstrans.cc:908: here case GxsTransSendStatus::PENDING_RECEIPT_SIGNATURE: // (cyril) This step is never actually used. /libretroshare/src/gxstrans/p3gxstrans.cc:924: warning: this statement may fall through [-Wimplicit-fallthrough=] pr.presignedReceipt.meta.setBinData(&srx[0], metaSize); /libretroshare/src/gxstrans/p3gxstrans.cc:926: here case GxsTransSendStatus::PENDING_PAYLOAD_CREATE: /libretroshare/src/gxstrans/p3gxstrans.cc:938: warning: this statement may fall through [-Wimplicit-fallthrough=] memcpy(&pr.mailItem.payload[offset], &pr.mailData[0], datasize); /libretroshare/src/gxstrans/p3gxstrans.cc:940: here case GxsTransSendStatus::PENDING_PAYLOAD_ENCRYPT: /libretroshare/src/gxstrans/p3gxstrans.cc:982: warning: this statement may fall through [-Wimplicit-fallthrough=] } /libretroshare/src/gxstrans/p3gxstrans.cc:984: here case GxsTransSendStatus::PENDING_PUBLISH:
This commit is contained in:
parent
18139489cf
commit
c97269bed6
@ -869,6 +869,7 @@ void p3GxsTrans::locked_processOutgoingRecord(OutgoingRecord& pr)
|
|||||||
pr.mailItem.saltRecipientHint(RsGxsId::random());
|
pr.mailItem.saltRecipientHint(RsGxsId::random());
|
||||||
pr.sent_ts = time(NULL) ; //pr.mailItem.meta.mPublishTs = time(NULL);
|
pr.sent_ts = time(NULL) ; //pr.mailItem.meta.mPublishTs = time(NULL);
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case GxsTransSendStatus::PENDING_PREFERRED_GROUP:
|
case GxsTransSendStatus::PENDING_PREFERRED_GROUP:
|
||||||
{
|
{
|
||||||
RS_STACK_MUTEX(mDataMutex);
|
RS_STACK_MUTEX(mDataMutex);
|
||||||
@ -882,6 +883,7 @@ void p3GxsTrans::locked_processOutgoingRecord(OutgoingRecord& pr)
|
|||||||
|
|
||||||
pr.group_id = mPreferredGroupId ; //pr.mailItem.meta.mGroupId = mPreferredGroupId;
|
pr.group_id = mPreferredGroupId ; //pr.mailItem.meta.mGroupId = mPreferredGroupId;
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case GxsTransSendStatus::PENDING_RECEIPT_CREATE:
|
case GxsTransSendStatus::PENDING_RECEIPT_CREATE:
|
||||||
{
|
{
|
||||||
RsGxsTransPresignedReceipt grcpt;
|
RsGxsTransPresignedReceipt grcpt;
|
||||||
@ -905,6 +907,7 @@ void p3GxsTrans::locked_processOutgoingRecord(OutgoingRecord& pr)
|
|||||||
*pr.presignedReceipt.metaData = grcpt.meta;
|
*pr.presignedReceipt.metaData = grcpt.meta;
|
||||||
pr.presignedReceipt.msg.setBinData(&grsrz[0], grsz);
|
pr.presignedReceipt.msg.setBinData(&grsrz[0], grsz);
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case GxsTransSendStatus::PENDING_RECEIPT_SIGNATURE: // (cyril) This step is never actually used.
|
case GxsTransSendStatus::PENDING_RECEIPT_SIGNATURE: // (cyril) This step is never actually used.
|
||||||
{
|
{
|
||||||
switch (RsGenExchange::createMessage(&pr.presignedReceipt))
|
switch (RsGenExchange::createMessage(&pr.presignedReceipt))
|
||||||
@ -923,6 +926,7 @@ void p3GxsTrans::locked_processOutgoingRecord(OutgoingRecord& pr)
|
|||||||
pr.presignedReceipt.metaData->serialise(&srx[0], &metaSize);
|
pr.presignedReceipt.metaData->serialise(&srx[0], &metaSize);
|
||||||
pr.presignedReceipt.meta.setBinData(&srx[0], metaSize);
|
pr.presignedReceipt.meta.setBinData(&srx[0], metaSize);
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case GxsTransSendStatus::PENDING_PAYLOAD_CREATE:
|
case GxsTransSendStatus::PENDING_PAYLOAD_CREATE:
|
||||||
{
|
{
|
||||||
uint16_t serv = static_cast<uint16_t>(pr.clientService);
|
uint16_t serv = static_cast<uint16_t>(pr.clientService);
|
||||||
@ -937,6 +941,7 @@ void p3GxsTrans::locked_processOutgoingRecord(OutgoingRecord& pr)
|
|||||||
offset += rcptsize;
|
offset += rcptsize;
|
||||||
memcpy(&pr.mailItem.payload[offset], &pr.mailData[0], datasize);
|
memcpy(&pr.mailItem.payload[offset], &pr.mailData[0], datasize);
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case GxsTransSendStatus::PENDING_PAYLOAD_ENCRYPT:
|
case GxsTransSendStatus::PENDING_PAYLOAD_ENCRYPT:
|
||||||
{
|
{
|
||||||
switch (pr.mailItem.cryptoType)
|
switch (pr.mailItem.cryptoType)
|
||||||
@ -981,6 +986,7 @@ void p3GxsTrans::locked_processOutgoingRecord(OutgoingRecord& pr)
|
|||||||
goto processingFailed;
|
goto processingFailed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/* fallthrough */
|
||||||
case GxsTransSendStatus::PENDING_PUBLISH:
|
case GxsTransSendStatus::PENDING_PUBLISH:
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_GXSTRANS
|
#ifdef DEBUG_GXSTRANS
|
||||||
|
Loading…
Reference in New Issue
Block a user