sd-bus-vtable: add dummy macro to support compile without GNU extension
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Apr 2024 02:52:23 +0000 (11:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Apr 2024 08:58:39 +0000 (17:58 +0900)
commite10409ad55dccda89a1f1ca23c6dabca20488d51
tree13acfe458b3430a684ec04db359dbc9647a521f3
parent2548ce6a30a1183a7bbbd699aafdf81249a5fe4e
sd-bus-vtable: add dummy macro to support compile without GNU extension

If SD_BUS_METHOD_WITH_ARGS() is set with SD_BUS_NO_ARGS and/or SD_BUS_NO_RESULT,
then it introduces
_SD_VARARGS_FOREACH_EVEN(_SD_ECHO, NULL)
    -> _SD_VARARGS_FOREACH_SEQ(_01, …, _50, NULL)
Hence, the variadic argument `...` in _SD_VARARGS_FOREACH_SEQ() has no
argument, but it is not allowed if built without GNU extension, e.g. -std=c11.

Let's introduce one more unused dummy argument to support such situation.
src/systemd/sd-bus-vtable.h