Skip to content

Commit

Permalink
Fix warnings on Jammy (#464)
Browse files Browse the repository at this point in the history
* Add .cc extension to suppress CMake warnings (#428)

Signed-off-by: Michael Carroll <michael@openrobotics.org>

* Fix -Wfree-nonheap-object

Signed-off-by: Louise Poubel <louise@openrobotics.org>

Signed-off-by: Michael Carroll <michael@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Co-authored-by: Michael Carroll <michael@openrobotics.org>
  • Loading branch information
chapulina and mjcarroll committed Aug 11, 2022
1 parent c9b9fc0 commit eef3853
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
22 changes: 11 additions & 11 deletions src/CMakeLists.txt
Expand Up @@ -16,17 +16,17 @@ set (sources
)

set (gtest_sources
Application_TEST
Conversions_TEST
Dialog_TEST
DragDropModel_TEST
Helpers_TEST
GuiEvents_TEST
ign_TEST
MainWindow_TEST
PlottingInterface_TEST
Plugin_TEST
SearchModel_TEST
Application_TEST.cc
Conversions_TEST.cc
Dialog_TEST.cc
DragDropModel_TEST.cc
Helpers_TEST.cc
GuiEvents_TEST.cc
ign_TEST.cc
MainWindow_TEST.cc
PlottingInterface_TEST.cc
Plugin_TEST.cc
SearchModel_TEST.cc
)

if (MSVC)
Expand Down
3 changes: 1 addition & 2 deletions src/PlottingInterface_TEST.cc
Expand Up @@ -172,8 +172,7 @@ TEST(PlottingInterfaceTest, IGN_UTILS_TEST_DISABLED_ON_WIN32(Transport))

auto transport = Transport();

double time = 10;
std::shared_ptr<double> timeRef(&time);
auto timeRef = std::make_shared<double>(10);

transport.Subscribe("/collision_topic", "pose-position-x", 1, timeRef);
transport.Subscribe("/collision_topic", "pose-position-z", 1, timeRef);
Expand Down

0 comments on commit eef3853

Please sign in to comment.