From 1f158274659c6be727cc13e9cfc052a0e5b1a419 Mon Sep 17 00:00:00 2001 From: Mathias Kraus Date: Fri, 20 Dec 2024 19:52:02 +0100 Subject: [PATCH] [#555] Fix macOS build --- .../c/publish_subscribe_with_user_header/src/subscriber.c | 2 +- .../cxx/include/iox2/port_factory_publish_subscribe.hpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/c/publish_subscribe_with_user_header/src/subscriber.c b/examples/c/publish_subscribe_with_user_header/src/subscriber.c index 312b0deb7..a9cde3ad6 100644 --- a/examples/c/publish_subscribe_with_user_header/src/subscriber.c +++ b/examples/c/publish_subscribe_with_user_header/src/subscriber.c @@ -104,7 +104,7 @@ int main(void) { printf("received: %lu, user_header: version = %d, timestamp = %lu\n", (long unsigned) *payload, user_header->version, - user_header->timestamp); + (long unsigned) user_header->timestamp); iox2_sample_drop(sample); } } diff --git a/iceoryx2-ffi/cxx/include/iox2/port_factory_publish_subscribe.hpp b/iceoryx2-ffi/cxx/include/iox2/port_factory_publish_subscribe.hpp index 2c51affd0..dc50f01ba 100644 --- a/iceoryx2-ffi/cxx/include/iox2/port_factory_publish_subscribe.hpp +++ b/iceoryx2-ffi/cxx/include/iox2/port_factory_publish_subscribe.hpp @@ -144,14 +144,15 @@ inline auto PortFactoryPublishSubscribe::static_config() } template -inline auto PortFactoryPublishSubscribe::dynamic_config() const - -> const DynamicConfigPublishSubscribe& { +inline auto +PortFactoryPublishSubscribe::dynamic_config() const -> const DynamicConfigPublishSubscribe& { IOX_TODO(); } template inline auto PortFactoryPublishSubscribe::nodes( - const iox::function)>& callback) const -> iox::expected { + [[maybe_unused]] const iox::function)>& callback) const + -> iox::expected { IOX_TODO(); }