Skip to content

Commit b81e2cf

Browse files
Fix build failures caused by rclc macro name change (#36)
micro-ROS/rclc@8ae0747 changed the name of the UNUSED macro to RCLC_UNUSED. This broke the build for two examples. Signed-off-by: Robert Wilbrandt <[email protected]>
1 parent 1c3b88b commit b81e2cf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

NOTICE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ eProsima
2828
Robert Bosch GmbH
2929
Ralph Lange <[email protected]>
3030
Raphael Vogelgsang <[email protected]>
31+
32+
Robert Wilbrandt <[email protected]>

apps/int32_publisher/app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ std_msgs__msg__Int32 msg;
2121

2222
void timer_callback(rcl_timer_t * timer, int64_t last_call_time)
2323
{
24-
UNUSED(last_call_time);
24+
RCLC_UNUSED(last_call_time);
2525
if (timer != NULL) {
2626
RCSOFTCHECK(rcl_publish(&publisher, &msg, NULL));
2727
msg.data++;

apps/ping_pong/app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int pong_count;
3434

3535
void ping_timer_callback(rcl_timer_t * timer, int64_t last_call_time)
3636
{
37-
UNUSED(last_call_time);
37+
RCLC_UNUSED(last_call_time);
3838

3939
if (timer != NULL) {
4040

0 commit comments

Comments
 (0)