mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-09 03:33:05 +00:00
moved logging output from template fct in header to source file to not have to include logging in header. Added maybe_unused to constructor argument which is unused to fix warning
This commit is contained in:
@@ -101,9 +101,14 @@ size_t FifoReader::read_gr_complex(int noutput_items, gr_vector_void_star &outpu
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(ERROR) << "unhandled FIFO event";
|
||||
fifo_error_output();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return items_retrieved;
|
||||
}
|
||||
|
||||
void FifoReader::fifo_error_output() const
|
||||
{
|
||||
LOG(ERROR) << "unhandled FIFO event";
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
* \{ */
|
||||
/** \addtogroup Signal_Source_gnuradio_blocks
|
||||
* \{ */
|
||||
|
||||
class FifoReader : virtual public gr::sync_block
|
||||
{
|
||||
public:
|
||||
@@ -80,13 +79,17 @@ private:
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(ERROR) << "unhandled FIFO event";
|
||||
fifo_error_output();
|
||||
break;
|
||||
}
|
||||
}
|
||||
return items_retrieved;
|
||||
}
|
||||
|
||||
//! this function moves logging output from this header into the source file
|
||||
//! thereby eliminating the need to include glog/logging.h in this header
|
||||
void fifo_error_output() const;
|
||||
|
||||
const std::string file_name_;
|
||||
const std::string sample_type_;
|
||||
std::ifstream fifo_;
|
||||
|
||||
Reference in New Issue
Block a user