From 5648579a267972b958530570a0e0436caa2be776 Mon Sep 17 00:00:00 2001 From: Josh Schindehette Date: Wed, 30 Sep 2020 15:24:07 -0400 Subject: [PATCH] Fixed variable declaration syntax for clang-tidy --- .../gnuradio_blocks/gr_complex_ip_packet_source.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/algorithms/signal_source/gnuradio_blocks/gr_complex_ip_packet_source.cc b/src/algorithms/signal_source/gnuradio_blocks/gr_complex_ip_packet_source.cc index c151c915b..a72ee564e 100644 --- a/src/algorithms/signal_source/gnuradio_blocks/gr_complex_ip_packet_source.cc +++ b/src/algorithms/signal_source/gnuradio_blocks/gr_complex_ip_packet_source.cc @@ -331,7 +331,8 @@ void Gr_Complex_Ip_Packet_Source::demux_samples(const gr_vector_void_star &outpu case 1: // interleaved byte samples for (auto &output_item : output_items) { - int8_t real, imag; + int8_t real; + int8_t imag; real = fifo_buff[fifo_read_ptr++]; imag = fifo_buff[fifo_read_ptr++]; if (d_IQ_swap) @@ -347,7 +348,8 @@ void Gr_Complex_Ip_Packet_Source::demux_samples(const gr_vector_void_star &outpu case 2: // 4-bit samples for (auto &output_item : output_items) { - int8_t real, imag; + int8_t real; + int8_t imag; uint8_t tmp_char2; tmp_char2 = fifo_buff[fifo_read_ptr] & 0x0F; if (tmp_char2 >= 8) @@ -381,7 +383,8 @@ void Gr_Complex_Ip_Packet_Source::demux_samples(const gr_vector_void_star &outpu case 3: // interleaved float samples for (auto &output_item : output_items) { - float real, imag; + float real; + float imag; memcpy(&real, &fifo_buff[fifo_read_ptr], sizeof(real)); fifo_read_ptr += 4; // Four bytes in float memcpy(&imag, &fifo_buff[fifo_read_ptr], sizeof(imag));