Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed maybe be used unitialized warnings (eProsima#1277)
``` /home/johnny/ACE/src/fastrtps/src/cpp/rtps/messages/MessageReceiver.cpp:745:14: note: ‘fragmentSize’ was declared here 745 | uint16_t fragmentSize; | ^~~~~~~~~~~~ /home/johnny/ACE/src/fastrtps/src/cpp/rtps/messages/MessageReceiver.cpp:842:39: warning: ‘fragmentsInSubmessage’ may be used uninitialized in this function [-Wmaybe-uninitialized] 842 | reader->processDataFragMsg(&ch, sampleSize, fragmentStartingNum, fragmentsInSubmessage); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/johnny/ACE/src/fastrtps/src/cpp/rtps/messages/MessageReceiver.cpp:760:18: warning: ‘octetsToInlineQos’ may be used uninitialized in this function [-Wmaybe-uninitialized] 760 | msg->pos += (octetsToInlineQos - RTPSMESSAGE_OCTETSTOINLINEQOS_DATAFRAGSUBMSG); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` Signed-off-by: Johnny Willemsen <[email protected]>
- Loading branch information