[LV2] [PR] Add sentinel attribute to variadic functions

Hanspeter Portner dev at open-music-kontrollers.ch
Wed Apr 25 14:06:20 PDT 2018


Hi List

It's only too easy to forget a sentinel in those variadic helper functions.
This pull request enables the compiler to check for missing sentinels
(with -Wformat).

Here the commit in question for those interested:
https://github.com/ventosus/lv2/commit/8d9e65db5c577dfbae6b2b242cf46df5df4d2584

Hanspeter

----------------------------------------------------------------

The following changes since commit fc332341acd2f5da4ba88e86d1bdbb47752c1688:

  Install lv2_util.h for use by third-party code (2018-04-21 14:21:18 +0200)

are available in the Git repository at:

  https://github.com/ventosus/lv2.git feature-sentinel

for you to fetch changes up to 8d9e65db5c577dfbae6b2b242cf46df5df4d2584:

  Add sentinel attribute to variadic functions (2018-04-25 22:54:04 +0200)

----------------------------------------------------------------
Hanspeter Portner (1):
      Add sentinel attribute to variadic functions

 lv2/lv2plug.in/ns/ext/atom/util.h    | 4 ++++
 lv2/lv2plug.in/ns/lv2core/lv2.h      | 9 +++++++++
 lv2/lv2plug.in/ns/lv2core/lv2_util.h | 1 +
 plugins/eg-params.lv2/params.c       | 4 ++--
 plugins/eg-sampler.lv2/peaks.h       | 2 +-
 plugins/eg-sampler.lv2/sampler.c     | 4 ++--
 plugins/eg-sampler.lv2/uris.h        | 4 ++--
 plugins/eg-scope.lv2/examploscope.c  | 2 +-
 8 files changed, 22 insertions(+), 8 deletions(-)


More information about the Devel mailing list