Browse Source

Silence a compiler warning

Signed-off-by: falkTX <falktx@falktx.com>
pull/1961/merge
falkTX 3 months ago
parent
commit
3b9e73f085
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      source/includes/lv2/atom-helpers.h

+ 9
- 0
source/includes/lv2/atom-helpers.h View File

@@ -210,6 +210,11 @@ LV2_Atom_Event *lv2_atom_buffer_get (


// Write an event at a LV2 atom:Sequence buffer iterator. // 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 static inline
bool lv2_atom_buffer_write ( bool lv2_atom_buffer_write (
LV2_Atom_Buffer_Iterator *iter, LV2_Atom_Buffer_Iterator *iter,
@@ -241,6 +246,10 @@ bool lv2_atom_buffer_write (
return true; return true;
} }


#if defined(__GNUC__) && __GNUC__ > 7
# pragma GCC diagnostic pop
#endif

#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */
#endif #endif


Loading…
Cancel
Save