From: Uwe Hermann Date: Thu, 11 Jun 2015 18:17:56 +0000 (+0200) Subject: test: session: Fix a compiler warning/error. X-Git-Tag: pulseview-0.3.0~190 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=45f0c7c9d7d291eb76bcf7f369ec76be42caf3ce;p=pulseview.git test: session: Fix a compiler warning/error. [ 30%] Building CXX object test/CMakeFiles/pulseview-test.dir/__/pv/storesession.cpp.o [...]/pv/session.cpp:408:62: error: unused parameter ‘device’ [-Werror=unused-parameter] void Session::sample_thread_proc(shared_ptr device, --- diff --git a/pv/session.cpp b/pv/session.cpp index d6fef9a7..b5d7911f 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -411,6 +411,8 @@ void Session::sample_thread_proc(shared_ptr device, assert(device); assert(error_handler); + (void)device; + cur_samplerate_ = device_->read_config(ConfigKey::SAMPLERATE); try {