From dad274c0eb6a89e9871bfebb7c10d521d03b0c28 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Fri, 1 Feb 2019 12:47:09 -0800 Subject: [PATCH] fix compiler warnings about unused variables (#1428) (#1610) --- 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 c49ff1f876..12a2733734 100644 --- a/test/test_rosbag/test/test_bag.cpp.in +++ b/test/test_rosbag/test/test_bag.cpp.in @@ -379,6 +379,7 @@ TEST(rosbag, bad_topic_query_works) { rosbag::View view(bag, rosbag::TopicQuery(t)); foreach(rosbag::MessageInstance const m, view) { + (void)m; FAIL(); }