From de7b72d5c3ddf94ab88c59132184f38b3833e743 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Thu, 19 Sep 2024 10:45:32 +0200 Subject: [PATCH] fix: define encoding func as inline --- src/api/encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/encoding.c b/src/api/encoding.c index cf21bf035..b5cb4dc54 100644 --- a/src/api/encoding.c +++ b/src/api/encoding.c @@ -29,7 +29,7 @@ .id = _id, \ .schema = {._slice = {.start = NULL, .len = 0, ._delete_context = {.deleter = NULL, .context = NULL}}}, \ }}; \ - const z_loaned_encoding_t *z_encoding_##_fname(void) { return &ZP_ENCODING_##_cname._val; } + inline const z_loaned_encoding_t *z_encoding_##_fname(void) { return &ZP_ENCODING_##_cname._val; } ENCODING_CONSTANT_MACRO(ZENOH_BYTES, zenoh_bytes, 0) ENCODING_CONSTANT_MACRO(ZENOH_INT8, zenoh_int8, 1)