mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-05 22:57:47 -04:00
BFM and DSD demod: gcc7 warnings fixes
This commit is contained in:
parent
c23894e567
commit
723df69943
@ -933,10 +933,10 @@ void RDSParser::decode_optional_content(int no_groups, unsigned long int *free_f
|
|||||||
while(ff_pointer > 0)
|
while(ff_pointer > 0)
|
||||||
{
|
{
|
||||||
ff_pointer -= 4;
|
ff_pointer -= 4;
|
||||||
m_g8_label_index = (free_format[i] && (0xf << ff_pointer));
|
m_g8_label_index = (free_format[i] & (0xf << ff_pointer));
|
||||||
content_length = optional_content_lengths[m_g8_label_index];
|
content_length = optional_content_lengths[m_g8_label_index];
|
||||||
ff_pointer -= content_length;
|
ff_pointer -= content_length;
|
||||||
m_g8_content = (free_format[i] && (int(std::pow(2, content_length) - 1) << ff_pointer));
|
m_g8_content = (free_format[i] & (int(std::pow(2, content_length) - 1) << ff_pointer));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
qDebug() << "RDSParser::decode_optional_content: TMC optional content (" << label_descriptions[m_g8_label_index].c_str()
|
qDebug() << "RDSParser::decode_optional_content: TMC optional content (" << label_descriptions[m_g8_label_index].c_str()
|
||||||
|
@ -527,11 +527,11 @@ void DSDDemodGUI::formatStatusText()
|
|||||||
strncpy(&m_formatStatusText[14], "---", 82-14);
|
strncpy(&m_formatStatusText[14], "---", 82-14);
|
||||||
}
|
}
|
||||||
|
|
||||||
char dest[11];
|
char dest[12];
|
||||||
|
|
||||||
if ( m_dsdDemod->getDecoder().getYSFDecoder().radioIdMode())
|
if ( m_dsdDemod->getDecoder().getYSFDecoder().radioIdMode())
|
||||||
{
|
{
|
||||||
snprintf(dest, 10, "%-5s:%-5s",
|
snprintf(dest, 11, "%-5s:%-5s",
|
||||||
m_dsdDemod->getDecoder().getYSFDecoder().getDestId(),
|
m_dsdDemod->getDecoder().getYSFDecoder().getDestId(),
|
||||||
m_dsdDemod->getDecoder().getYSFDecoder().getSrcId());
|
m_dsdDemod->getDecoder().getYSFDecoder().getSrcId());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user