From 2b05d3110a0a50ce93c8c887a2dc00c1375e92fa Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sun, 29 May 2016 17:30:49 +0200 Subject: [PATCH] Fix warning for unused Session::sample_thread_proc() parameter --- pv/session.cpp | 7 ++----- pv/session.hpp | 3 +-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pv/session.cpp b/pv/session.cpp index ba43ac21..73dd339b 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -223,8 +223,7 @@ void Session::start_capture(function error_handler) // Begin the session sampling_thread_ = std::thread( - &Session::sample_thread_proc, this, device_, - error_handler); + &Session::sample_thread_proc, this, error_handler); } void Session::stop_capture() @@ -458,10 +457,8 @@ shared_ptr Session::signal_from_channel( return shared_ptr(); } -void Session::sample_thread_proc(shared_ptr device, - function error_handler) +void Session::sample_thread_proc(function error_handler) { - assert(device); assert(error_handler); if (!device_) diff --git a/pv/session.hpp b/pv/session.hpp index 22705c36..e113cf4f 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -137,8 +137,7 @@ private: std::shared_ptr channel) const; private: - void sample_thread_proc(std::shared_ptr device, - std::function error_handler); + void sample_thread_proc(std::function error_handler); void feed_in_header(); -- 2.30.2