Skip to content

Commit

Permalink
Removed warnigns (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored Apr 29, 2024
1 parent 092520b commit 4b6808f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions patches/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.patch text eol=lf
13 changes: 13 additions & 0 deletions patches/0001.patch
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit 4b6808f

Please sign in to comment.