Task #139922 - fixed.err
back to task #139922download
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/channelrx/freqscanner/freqscannersink.cpp: scope_hint: In member function ‘void FreqScannerSink::getFormantEnvelope(int, int, QVector<float>&, Real*)’
sdrangel-v4.11.5/plugins/channelrx/freqscanner/freqscannersink.cpp:927:10: warning[-Wunused-but-set-variable=]: variable ‘sumMagSq’ set but not used
# 927 | Real sumMagSq = 0.0;
# | ^~~~~~~~
# 925| QVector<Real> logMag(numBins);
# 926| Real minLog = -10.0; // Floor to avoid log(0)
# 927|-> Real sumMagSq = 0.0;
# 928|
# 929| for (int i = 0; i < numBins; i++)
Error: COMPILER_WARNING (CWE-665):
sdrangel-v4.11.5/plugins/channeltx/modais/aismodsource.cpp:30:1: warning[-Wreorder]: when initialized here
# 30 | AISModSource::AISModSource() :
# | ^~~~~~~~~~~~
# 28| #include "channel/channelapi.h"
# 29|
# 30|-> AISModSource::AISModSource() :
# 31| m_channelSampleRate(AISModSettings::AISMOD_SAMPLE_RATE),
# 32| m_channelFrequencyOffset(0),
Error: COMPILER_WARNING (CWE-665):
sdrangel-v4.11.5/plugins/channeltx/modais/aismodsource.h:87:9: warning[-Wreorder]: ‘int AISModSource::m_nrziBit’
# 87 | int m_nrziBit; // Output of NRZI coder
# | ^~~~~~~~~
# 85| Complex m_modSample;
# 86|
# 87|-> int m_nrziBit; // Output of NRZI coder
# 88| Gaussian<Real> m_pulseShape; // Pulse shaping filter
# 89|
Error: COMPILER_WARNING (CWE-665):
sdrangel-v4.11.5/plugins/channeltx/modais/aismodsource.cpp:24: included_from: Included from here.
sdrangel-v4.11.5/plugins/channeltx/modais/aismodsource.h: scope_hint: In constructor ‘AISModSource::AISModSource()’
sdrangel-v4.11.5/plugins/channeltx/modais/aismodsource.h:116:14: warning[-Wreorder]: ‘AISModSource::m_waitCounter’ will be initialized after
# 116 | uint64_t m_waitCounter; // Samples to wait before retransmission
# | ^~~~~~~~~~~~~
# 114| } m_state; // States for sample modulation
# 115| int m_packetRepeatCount;
# 116|-> uint64_t m_waitCounter; // Samples to wait before retransmission
# 117|
# 118| uint8_t m_bits[AIS_MAX_BITS]; // HDLC encoded bits to transmit
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp:23: warning[uninitMemberVar]: Member variable 'DVBS::m_codeRate' is not initialized in the constructor.
# 21| #include <string.h>
# 22|
# 23|-> DVBS::DVBS() :
# 24| m_prbsPacketCount(0),
# 25| m_delayLine(0),
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp:23: warning[uninitMemberVar]: Member variable 'DVBS::m_prbsIdx' is not initialized in the constructor.
# 21| #include <string.h>
# 22|
# 23|-> DVBS::DVBS() :
# 24| m_prbsPacketCount(0),
# 25| m_delayLine(0),
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/moddatv/dvb-s/dvb-s.cpp:23: warning[uninitMemberVar]: Member variable 'DVBS::m_prevIQ' is not initialized in the constructor.
# 21| #include <string.h>
# 22|
# 23|-> DVBS::DVBS() :
# 24| m_prbsPacketCount(0),
# 25| m_delayLine(0),
Error: COMPILER_WARNING (CWE-252):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp: scope_hint: In member function ‘void TSGenerator::generate_still_image_ts(const char*, int, bool, int)’
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:72:26: warning[-Wunused-result]: ignoring return value of ‘int avformat_write_header(AVFormatContext*, AVDictionary**)’, declared with attribute ‘nodiscard’
# 72 | avformat_write_header(oc, nullptr);
# | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:21: included_from: Included from here.
/usr/include/ffmpeg/libavformat/avformat.h:2616:5: note: declared here
# 2616 | int avformat_write_header(AVFormatContext *s, AVDictionary **options);
# | ^~~~~~~~~~~~~~~~~~~~~
# 70| AVFormatContext* oc = nullptr;
# 71| int stream_idx = setup_ts_context(&oc, ctx);
# 72|-> avformat_write_header(oc, nullptr);
# 73|
# 74| // 3. Generate fixed duration TS packets
Error: COMPILER_WARNING (CWE-477):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp: scope_hint: In member function ‘AVFrame* TSGenerator::load_image_to_yuv(const char*, int, int)’
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:133:19: warning[-Wdeprecated-declarations]: ‘void av_init_packet(AVPacket*)’ is deprecated
# 133 | av_init_packet(&pkt);
# | ~~~~~~~~~~~~~~^~~~~~
/usr/include/ffmpeg/libavcodec/avcodec.h:44: included_from: Included from here.
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:20: included_from: Included from here.
/usr/include/ffmpeg/libavcodec/packet.h:726:6: note: declared here
# 726 | void av_init_packet(AVPacket *pkt);
# | ^~~~~~~~~~~~~~
# 131|
# 132| // Decode single frame
# 133|-> av_init_packet(&pkt);
# 134| if (av_read_frame(fmt_ctx, &pkt) < 0) goto cleanup;
# 135|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::data’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::dts’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::duration’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::flags’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::opaque_ref’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::opaque’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::pos’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp: scope_hint: In member function ‘void TSGenerator::encode_frame_to_ts(AVFormatContext*, AVCodecContext*, AVFrame*, int)’
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::pts’
# 345 | AVPacket pkt = {nullptr};
# | ^
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::side_data_elems’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::side_data’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::size’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::stream_index’
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: COMPILER_WARNING (CWE-909):
sdrangel-v4.11.5/plugins/channeltx/moddatv/tsgenerator.cpp:345:28: warning[-Wmissing-field-initializers]: missing initializer for member ‘AVPacket::time_base’
sdrangel-v4.11.5/modemm17/M17Modulator.h:6: included_from: Included from here.
sdrangel-v4.11.5/plugins/channeltx/modm17/m17modprocessor.h:28: included_from: Included from here.
sdrangel-v4.11.5/redhat-linux-build/plugins/channeltx/modm17/modm17_autogen/EWIEGA46WW/moc_m17modprocessor.cpp:9: included_from: Included from here.
sdrangel-v4.11.5/redhat-linux-build/plugins/channeltx/modm17/modm17_autogen/mocs_compilation.cpp:6: included_from: Included from here.
sdrangel-v4.11.5/modemm17/FirFilter.h: scope_hint: In instantiation of ‘modemm17::BaseFirFilter<N> modemm17::makeFirFilter(const std::array<float, N>&) [with long unsigned int N = 150]’
#/builddir/build/BUILD/sdrangel-v4.11.5/modemm17/M17Modulator.h:458:26: required from here
# 458 | rrc(makeFirFilter(rrc_taps)),
# | ~~~~~~~~~~~~~^~~~~~~~~~
# 343| void TSGenerator::encode_frame_to_ts(AVFormatContext* oc, AVCodecContext* codec_ctx, AVFrame* frame, int stream_idx)
# 344| {
# 345|-> AVPacket pkt = {nullptr};
# 346| int ret;
# 347|
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modm17/m17moddecimator.cpp:20: warning[uninitMemberVar]: Member variable 'M17ModDecimator::mCursor' is not initialized in the constructor.
sdrangel-v4.11.5/modemm17/M17Modulator.h:6: included_from: Included from here.
sdrangel-v4.11.5/plugins/channeltx/modm17/m17modprocessor.cpp:21: included_from: Included from here.
sdrangel-v4.11.5/modemm17/FirFilter.h: scope_hint: In instantiation of ‘modemm17::BaseFirFilter<N> modemm17::makeFirFilter(const std::array<float, N>&) [with long unsigned int N = 150]’
#/builddir/build/BUILD/sdrangel-v4.11.5/modemm17/M17Modulator.h:458:26: required from here
# 458 | rrc(makeFirFilter(rrc_taps)),
# | ~~~~~~~~~~~~~^~~~~~~~~~
# 18| #include "m17moddecimator.h"
# 19|
# 20|-> M17ModDecimator::M17ModDecimator() :
# 21| mKernel(nullptr),
# 22| mShift(nullptr)
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modm17/m17moddecimator.cpp:20: warning[uninitMemberVar]: Member variable 'M17ModDecimator::mDecimatedSampleRate' is not initialized in the constructor.
# 18| #include "m17moddecimator.h"
# 19|
# 20|-> M17ModDecimator::M17ModDecimator() :
# 21| mKernel(nullptr),
# 22| mShift(nullptr)
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modm17/m17moddecimator.cpp:20: warning[uninitMemberVar]: Member variable 'M17ModDecimator::mKernelSize' is not initialized in the constructor.
# 18| #include "m17moddecimator.h"
# 19|
# 20|-> M17ModDecimator::M17ModDecimator() :
# 21| mKernel(nullptr),
# 22| mShift(nullptr)
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modm17/m17moddecimator.cpp:20: warning[uninitMemberVar]: Member variable 'M17ModDecimator::mOversampleRate' is not initialized in the constructor.
# 18| #include "m17moddecimator.h"
# 19|
# 20|-> M17ModDecimator::M17ModDecimator() :
# 21| mKernel(nullptr),
# 22| mShift(nullptr)
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modm17/m17moddecimator.cpp:20: warning[uninitMemberVar]: Member variable 'M17ModDecimator::mRatio' is not initialized in the constructor.
# 18| #include "m17moddecimator.h"
# 19|
# 20|-> M17ModDecimator::M17ModDecimator() :
# 21| mKernel(nullptr),
# 22| mShift(nullptr)
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modnfm/nfmmoddcs.cpp:26: warning[uninitMemberVar]: Member variable 'NFMModDCS::m_bitPerStep' is not initialized in the constructor.
# 24| const float NFMModDCS::m_codeRate = 134.3; //!< bits per second
# 25|
# 26|-> NFMModDCS::NFMModDCS()
# 27| {
# 28| reset();
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modnfm/nfmmoddcs.cpp:26: warning[uninitMemberVar]: Member variable 'NFMModDCS::m_dcsWord' is not initialized in the constructor.
# 24| const float NFMModDCS::m_codeRate = 134.3; //!< bits per second
# 25|
# 26|-> NFMModDCS::NFMModDCS()
# 27| {
# 28| reset();
Error: CPPCHECK_WARNING (CWE-398):
sdrangel-v4.11.5/plugins/channeltx/modnfm/nfmmoddcs.cpp:26: warning[uninitMemberVar]: Member variable 'NFMModDCS::m_positive' is not initialized in the constructor.
# 24| const float NFMModDCS::m_codeRate = 134.3; //!< bits per second
# 25|
# 26|-> NFMModDCS::NFMModDCS()
# 27| {
# 28| reset();
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp: scope_hint: In member function ‘void SoapySDROutputGui::createTunableElementsControl(const std::vector<DeviceSoapySDRParams::FrequencySetting>&)’
sdrangel-v4.11.5/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp:204:14: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 204 | for (int i = 0; it != tunableElementsList.end(); ++it, i++)
# | ^
# 202| std::vector<DeviceSoapySDRParams::FrequencySetting>::const_iterator it = tunableElementsList.begin() + 1;
# 203|
# 204|-> for (int i = 0; it != tunableElementsList.end(); ++it, i++)
# 205| {
# 206| if (it->m_ranges.size() == 0) { // skip empty ranges lists
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp: scope_hint: In member function ‘void SoapySDROutputGui::createIndividualGainsControl(const std::vector<DeviceSoapySDRParams::GainSetting>&)’
sdrangel-v4.11.5/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp:262:14: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 262 | for (int i = 0; it != individualGainsList.end(); ++it, i++)
# | ^
# 260| std::vector<DeviceSoapySDRParams::GainSetting>::const_iterator it = individualGainsList.begin();
# 261|
# 262|-> for (int i = 0; it != individualGainsList.end(); ++it, i++)
# 263| {
# 264| IntervalSliderGUI *gainGUI = new IntervalSliderGUI(this);
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp: scope_hint: In member function ‘void SoapySDROutputGui::createArgumentsControl(const SoapySDR::ArgInfoList&, bool)’
sdrangel-v4.11.5/plugins/samplesink/soapysdroutput/soapysdroutputgui.cpp:376:22: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 376 | for (int i = 0; optionIt != it->options.end(); ++optionIt, i++)
# | ^
# 374| std::vector<std::string>::const_iterator optionNameIt = it->optionNames.begin();
# 375|
# 376|-> for (int i = 0; optionIt != it->options.end(); ++optionIt, i++)
# 377| {
# 378| QString name(optionNameIt == it->optionNames.end() ? optionIt->c_str() : optionNameIt->c_str());
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp: scope_hint: In member function ‘void SoapySDRInputGui::createTunableElementsControl(const std::vector<DeviceSoapySDRParams::FrequencySetting>&)’
sdrangel-v4.11.5/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp:206:14: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 206 | for (int i = 0; it != tunableElementsList.end(); ++it, i++)
# | ^
# 204| std::vector<DeviceSoapySDRParams::FrequencySetting>::const_iterator it = tunableElementsList.begin() + 1;
# 205|
# 206|-> for (int i = 0; it != tunableElementsList.end(); ++it, i++)
# 207| {
# 208| if (it->m_ranges.size() == 0) { // skip empty ranges lists
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp: scope_hint: In member function ‘void SoapySDRInputGui::createIndividualGainsControl(const std::vector<DeviceSoapySDRParams::GainSetting>&)’
sdrangel-v4.11.5/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp:264:14: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 264 | for (int i = 0; it != individualGainsList.end(); ++it, i++)
# | ^
# 262| std::vector<DeviceSoapySDRParams::GainSetting>::const_iterator it = individualGainsList.begin();
# 263|
# 264|-> for (int i = 0; it != individualGainsList.end(); ++it, i++)
# 265| {
# 266| IntervalSliderGUI *gainGUI = new IntervalSliderGUI(this);
Error: COMPILER_WARNING:
sdrangel-v4.11.5/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp: scope_hint: In member function ‘void SoapySDRInputGui::createArgumentsControl(const SoapySDR::ArgInfoList&, bool)’
sdrangel-v4.11.5/plugins/samplesource/soapysdrinput/soapysdrinputgui.cpp:380:22: warning[-Wunused-but-set-variable=]: variable ‘i’ set but not used
# 380 | for (int i = 0; optionIt != it->options.end(); ++optionIt, i++)
# | ^
# 378| std::vector<std::string>::const_iterator optionNameIt = it->optionNames.begin();
# 379|
# 380|-> for (int i = 0; optionIt != it->options.end(); ++optionIt, i++)
# 381| {
# 382| QString name(optionNameIt == it->optionNames.end() ? optionIt->c_str() : optionNameIt->c_str());