diff --git a/source/includes/lv2/atom-helpers.h b/source/includes/lv2/atom-helpers.h index 97cef2c34..c5fec9f8e 100644 --- a/source/includes/lv2/atom-helpers.h +++ b/source/includes/lv2/atom-helpers.h @@ -209,6 +209,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, @@ -240,6 +245,10 @@ bool lv2_atom_buffer_write ( return true; } +#if defined(__GNUC__) && __GNUC__ > 7 +# pragma GCC diagnostic pop +#endif + #ifdef __cplusplus } /* extern "C" */ #endif