]> sigrok.org Git - pulseview.git/commitdiff
test: session: Fix a compiler warning/error.
authorUwe Hermann <redacted>
Thu, 11 Jun 2015 18:17:56 +0000 (20:17 +0200)
committerUwe Hermann <redacted>
Thu, 11 Jun 2015 18:38:48 +0000 (20:38 +0200)
 [ 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<devices::Device> device,

pv/session.cpp

index d6fef9a7eee143e0de1f3f877654f6e117066719..b5d7911fede86af41f8e17e2914bd52a875691db 100644 (file)
@@ -411,6 +411,8 @@ void Session::sample_thread_proc(shared_ptr<devices::Device> device,
        assert(device);
        assert(error_handler);
 
+       (void)device;
+
        cur_samplerate_ = device_->read_config<uint64_t>(ConfigKey::SAMPLERATE);
 
        try {