Fedora rawhide, gcc-16, it emits some maybe uninitialized warnings,
which with hardened build flags (several distros use) may turn into
errors:
/builddir/build/BUILD/wsjtx-3.0.0_rc1-build/wsjtx-3.0.0-rc1/wsjtx/Transceiver/HRDTransceiver.cpp:1067:86:
error: ‘*<unknown>.HRDMessage::size_’ may be used uninitialized
[-Werror=maybe-uninitialized]
1067 | if (!write_to_port (reinterpret_cast<char const *>
(message.data ()), message->size_))
|
~~~~~~~~~^~~~~
/builddir/build/BUILD/wsjtx-3.0.0_rc1-build/wsjtx-3.0.0-rc1/wsjtx/Transceiver/HRDTransceiver.cpp:1084:43:
error: ‘*(const HRDMessage*)<unknown>.HRDMessage::magic_1_’ may be
used uninitialized [-Werror=maybe-uninitialized]
1084 | if (reply->magic_1_value_ != reply->magic_1_ &&
reply->magic_2_value_ != reply->magic_2_)
| ~~~~~~~^~~~~~~~
/builddir/build/BUILD/wsjtx-3.0.0_rc1-build/wsjtx-3.0.0-rc1/wsjtx/Transceiver/HRDTransceiver.cpp:1084:87:
error: ‘*(const HRDMessage*)<unknown>.HRDMessage::magic_2_’ may be
used uninitialized [-Werror=maybe-uninitialized]
1084 | if (reply->magic_1_value_ != reply->magic_1_ &&
reply->magic_2_value_ != reply->magic_2_)
|
~~~~~~~^~~~~~~~
/builddir/build/BUILD/wsjtx-3.0.0_rc1-build/wsjtx-3.0.0-rc1/wsjtx/Transceiver/HRDTransceiver.cpp:1094:69:
error: ‘*(const HRDMessage*)<unknown>.HRDMessage::size_’ may be used
uninitialized [-Werror=maybe-uninitialized]
1094 | while (buffer.size () - offsetof (HRDMessage, size_) <
reply->size_)
|
~~~~~~~^~~~~
/builddir/build/BUILD/wsjtx-3.0.0_rc1-build/wsjtx-3.0.0-rc1/wsjtx/Transceiver/HRDTransceiver.cpp:1094:69:
error: ‘*(const HRDMessage*)<unknown>.HRDMessage::size_’ may be used
uninitialized [-Werror=maybe-uninitialized]
I didn't check the code whether it's a real problem, but reporting
thanks & regards
Jaroslav
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel