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