From c5263e5b1a65d7343e575b227f2d8f536aec7945 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Tue, 5 May 2026 17:32:48 +0000 Subject: [PATCH] Make the deprecation warning not fail with -Werror --- tl_expected/include/tl_expected/expected.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tl_expected/include/tl_expected/expected.hpp b/tl_expected/include/tl_expected/expected.hpp index 670d791..8760770 100644 --- a/tl_expected/include/tl_expected/expected.hpp +++ b/tl_expected/include/tl_expected/expected.hpp @@ -13,14 +13,9 @@ // . /// -#ifdef _WIN32 +#if defined(_MSC_VER) || defined(__clang__) || defined(__GNUC__) #pragma message( \ - "tl_expected/expected.hpp is deprecated and will be removed by the ROS 2 Lyrical Luth release. \ - Use from libexpected-dev, or if the system header is not available.") // NOLINT -#else -#warning \ - "tl_expected/expected.hpp is deprecated and will be removed by the ROS 2 Lyrical Luth release. \ - Use from libexpected-dev, or if the system header is not available." // NOLINT + "tl_expected/expected.hpp is deprecated. Use from libexpected-dev, or if the system header is not available.") // NOLINT #endif #ifndef TL_EXPECTED_HPP