Skip to content

Commit f2fa0aa

Browse files
committed
replace __attribute__((unused)) with [[maybe_unused]]
1 parent 16f5d9d commit f2fa0aa

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

patch/ros-lyrical-moveit-task-constructor-core.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,20 @@ index 26c86ac..d5cd670 100644
3636

3737
# install libs
3838
install(TARGETS ${PROJECT_NAME}_python_tools
39+
diff --git a/src/container.cpp b/src/container.cpp
40+
index febc00f..fded044 100644
41+
--- a/src/container.cpp
42+
+++ b/src/container.cpp
43+
@@ -57,8 +57,7 @@ namespace moveit {
44+
namespace task_constructor {
45+
46+
// for debugging of how children interfaces evolve over time
47+
-__attribute__((unused)) // silent unused-function warning
48+
-static void
49+
+[[maybe_unused]] static void
50+
printChildrenInterfaces(const ContainerBasePrivate& container, bool success, const Stage& creator,
51+
std::ostream& os = std::cerr) {
52+
static unsigned int id = 0;
3953
diff --git a/src/cost_terms.cpp b/src/cost_terms.cpp
4054
index 9ddb94f..9896d36 100644
4155
--- a/src/cost_terms.cpp

0 commit comments

Comments
 (0)