From 3b9e73f085d177384bed46a8629f3bd800e5c99e Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 24 Jul 2025 13:13:55 +0200 Subject: [PATCH] Silence a compiler warning Signed-off-by: falkTX --- source/includes/lv2/atom-helpers.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/includes/lv2/atom-helpers.h b/source/includes/lv2/atom-helpers.h index 1e6abfa44..b46079650 100644 --- a/source/includes/lv2/atom-helpers.h +++ b/source/includes/lv2/atom-helpers.h @@ -210,6 +210,11 @@ LV2_Atom_Event *lv2_atom_buffer_get ( // Write an event at a LV2 atom:Sequence buffer iterator. +#if defined(__GNUC__) && __GNUC__ > 7 +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wstringop-overflow" +#endif + static inline bool lv2_atom_buffer_write ( LV2_Atom_Buffer_Iterator *iter, @@ -241,6 +246,10 @@ bool lv2_atom_buffer_write ( return true; } +#if defined(__GNUC__) && __GNUC__ > 7 +# pragma GCC diagnostic pop +#endif + #ifdef __cplusplus } /* extern "C" */ #endif