From d51ba50f62506c2b39619e03a935201a6c857aa0 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Fri, 8 Jun 2018 13:28:21 -0700 Subject: [PATCH] fix compiler warnings about unused variables (#1428) --- clients/roscpp/src/libros/init.cpp | 2 -- test/test_rosbag/test/test_bag.cpp.in | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/clients/roscpp/src/libros/init.cpp b/clients/roscpp/src/libros/init.cpp index 7a38aaab1a..fa3a0430d8 100644 --- a/clients/roscpp/src/libros/init.cpp +++ b/clients/roscpp/src/libros/init.cpp @@ -604,8 +604,6 @@ void shutdown() XMLRPCManager::instance()->shutdown(); } - WallTime end = WallTime::now(); - g_started = false; g_ok = false; Time::shutdown(); diff --git a/test/test_rosbag/test/test_bag.cpp.in b/test/test_rosbag/test/test_bag.cpp.in index db4e107555..670e45b9c1 100644 --- a/test/test_rosbag/test/test_bag.cpp.in +++ b/test/test_rosbag/test/test_bag.cpp.in @@ -376,6 +376,7 @@ TEST(rosbag, bad_topic_query_works) { rosbag::View view(bag, rosbag::TopicQuery(t)); foreach(rosbag::MessageInstance const m, view) { + (void)m; FAIL(); }