minor: Fix GCC pragma with Wunknown-warning-option

This commit is contained in:
Christian W. Zuckschwerdt 2024-02-10 14:19:18 +01:00
parent 68d7b81dfe
commit 58a3f97d2f
2 changed files with 2 additions and 0 deletions

View file

@ -153,6 +153,7 @@ alloc_error:
// the static analyzer can't prove the allocs to be correct
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wanalyzer-malloc-leak"
static data_t *vdata_make(data_t *first, const char *key, const char *pretty_key, va_list ap)

View file

@ -957,6 +957,7 @@ static int sdr_open_soapy(sdr_dev_t **out_dev, char const *dev_query, int verbos
// the buffer sizes can't be proven to be correct
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunknown-warning-option"
#pragma GCC diagnostic ignored "-Wanalyzer-allocation-size"
static int soapysdr_read_loop(sdr_dev_t *dev, sdr_event_cb_t cb, void *ctx, uint32_t buf_num, uint32_t buf_len)