Add [[maybe_unused]] to silence warnings

This commit is contained in:
Carles Fernandez 2023-12-21 10:18:12 +01:00
parent dfbdd4bc76
commit d8fabdb4ac
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 2 additions and 2 deletions

View File

@ -157,7 +157,7 @@ void cfg_ad9361_streaming_ch(struct stream_cfg *cfg, iio_channel *chn)
int setup_filter(const std::string &filter_source_, uint64_t bandwidth_, uint64_t sample_rate_, uint64_t freq_, const std::string &rf_port_select_,
struct iio_device *ad9361_phy_dev, struct iio_channel *rx_chan, struct iio_channel *chn, int chid, std::string filter_filename_, float Fpass_, float Fstop_)
struct iio_device *ad9361_phy_dev, struct iio_channel *rx_chan, struct iio_channel *chn, int chid, std::string filter_filename_, [[maybe_unused]] float Fpass_, [[maybe_unused]] float Fstop_)
{
int ret;
if (filter_source_ == "Off")

View File

@ -805,7 +805,7 @@ double ad936x_iio_custom::get_rx_gain(int ch_num)
}
bool ad936x_iio_custom::calibrate(int ch, double bw_hz)
bool ad936x_iio_custom::calibrate([[maybe_unused]] int ch, [[maybe_unused]] double bw_hz)
{
if (check_device() == false) return false;
// todo