From 38984041cf3a4134c1d4786a0e20e6fb6c3bbd78 Mon Sep 17 00:00:00 2001 From: Dhruv Patel Date: Thu, 19 Nov 2026 15:51:36 +0100 Subject: [PATCH] fix(integration_tests): call sigemptyset/sigaddset unqualified On macOS, sigemptyset() and sigaddset() are also defined as macros in , so the qualified calls in install_crash_backtrace() expand to `::(...)` and fail to compile with Apple clang: error: expected unqualified-id Call them unqualified, which works with both the macro and the function. Tested on macOS 27 (arm64), Apple clang 21.0.0: the qualified calls fail with the error above, the unqualified ones compile. Built in the ros2_macOS jazzy CI run https://github.com/idesign0/ros2_macOS/actions/runs/44117826051. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Dhruv Patel --- .../ros2_medkit_integration_tests/crash_backtrace.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ros2_medkit_integration_tests/include/ros2_medkit_integration_tests/crash_backtrace.hpp b/src/ros2_medkit_integration_tests/include/ros2_medkit_integration_tests/crash_backtrace.hpp index 4ccaf1d32..c655a6bd7 100644 --- a/src/ros2_medkit_integration_tests/include/ros2_medkit_integration_tests/crash_backtrace.hpp +++ b/src/ros2_medkit_integration_tests/include/ros2_medkit_integration_tests/crash_backtrace.hpp @@ -178,10 +178,10 @@ inline void install_crash_backtrace() { // Blocks the other fatal signals for the duration of the handler ON THIS // THREAD. That is all sa_mask can do - the cross-thread case is what // crash_reporting_flag() above is for. - ::sigemptyset(&action.sa_mask); - ::sigaddset(&action.sa_mask, SIGSEGV); - ::sigaddset(&action.sa_mask, SIGBUS); - ::sigaddset(&action.sa_mask, SIGABRT); + sigemptyset(&action.sa_mask); + sigaddset(&action.sa_mask, SIGSEGV); + sigaddset(&action.sa_mask, SIGBUS); + sigaddset(&action.sa_mask, SIGABRT); // SA_RESETHAND restores the default disposition before the handler runs, so // returning from it re-raises the signal and the process dies the way it // would have without us.