From 4b6808fd0f9b0b5e05928c0c8e44fd976a043d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez=20Cordero?= Date: Mon, 29 Apr 2024 10:32:58 +0200 Subject: [PATCH] Removed warnigns (#49) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández Cordero --- CMakeLists.txt | 1 + patches/.gitattributes | 1 + patches/0001.patch | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 patches/.gitattributes create mode 100644 patches/0001.patch diff --git a/CMakeLists.txt b/CMakeLists.txt index 5906f7e..f154bc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,7 @@ ament_vendor(yaml_cpp_vendor -DYAML_CPP_BUILD_TESTS:BOOL=OFF -DYAML_CPP_BUILD_TOOLS:BOOL=OFF -DYAML_BUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS} + PATCHES patches ) ament_package( diff --git a/patches/.gitattributes b/patches/.gitattributes new file mode 100644 index 0000000..9812ceb --- /dev/null +++ b/patches/.gitattributes @@ -0,0 +1 @@ +*.patch text eol=lf diff --git a/patches/0001.patch b/patches/0001.patch new file mode 100644 index 0000000..fa8f94e --- /dev/null +++ b/patches/0001.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 72fa542..855fc69 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -111,7 +111,7 @@ endif() + if(YAML_CPP_MAIN_PROJECT) + target_compile_options(yaml-cpp + PRIVATE +- $<${not-msvc}:-Wall -Wextra -Wshadow -Weffc++ -Wno-long-long> ++ $<${not-msvc}:-Wall -Wextra -Wno-shadow -Weffc++ -Wno-long-long> + $<${not-msvc}:-pedantic -pedantic-errors>) + endif() +