From 43fccfd7f1dffec7b9ee07a9d7f3de96d26b82cf Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Thu, 2 May 2019 11:26:11 -0700 Subject: [PATCH] ignore clang warnings within Connext code Signed-off-by: Dirk Thomas --- rosidl_typesupport_connext_c/src/wstring_conversion.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rosidl_typesupport_connext_c/src/wstring_conversion.cpp b/rosidl_typesupport_connext_c/src/wstring_conversion.cpp index dd8c22b..5c10f75 100644 --- a/rosidl_typesupport_connext_c/src/wstring_conversion.cpp +++ b/rosidl_typesupport_connext_c/src/wstring_conversion.cpp @@ -14,7 +14,15 @@ #include +#ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wdeprecated-register" +# pragma clang diagnostic ignored "-Wreturn-type-c-linkage" +#endif #include "ndds/ndds_c.h" +#ifdef __clang__ +# pragma clang diagnostic pop +#endif #include "rosidl_generator_c/u16string_functions.h" namespace rosidl_typesupport_connext_c