From 039ac8c4c16e282446bc29040612786d808645bf Mon Sep 17 00:00:00 2001 From: Cavan O'Horo <116211548+cav2094@users.noreply.github.com> Date: Sat, 21 Feb 2026 22:25:00 -0500 Subject: [PATCH] Fix double-promotion warning in gz_msgs on macOS (#26548) Protobuf-generated code in gz_msgs triggers -Wdouble-promotion warnings from the Abseil library. Since this is external code we cannot modify, disable the warning for this specific target. Fixes #26533 --- src/modules/simulation/gz_msgs/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/simulation/gz_msgs/CMakeLists.txt b/src/modules/simulation/gz_msgs/CMakeLists.txt index 2501811e5e..568bd7874a 100644 --- a/src/modules/simulation/gz_msgs/CMakeLists.txt +++ b/src/modules/simulation/gz_msgs/CMakeLists.txt @@ -18,6 +18,9 @@ if (Protobuf_FOUND) ${PROTO_HDRS} ) + # Disable double-promotion warning for protobuf-generated code + target_compile_options(px4_gz_msgs PRIVATE -Wno-double-promotion) + target_include_directories(px4_gz_msgs PUBLIC ${CMAKE_CURRENT_BINARY_DIR}