diff options
author | David Robillard <d@drobilla.net> | 2018-09-23 22:05:51 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-09-23 22:05:51 +0200 |
commit | 407099d7a30d01799824c7d4f341e0095e752919 (patch) | |
tree | dfbfd05e00ebf98c625fb00c7bc2075077273221 /src/server | |
parent | e0e437c0fd970103685db2f1d0c83a9c461ad87f (diff) | |
download | ingen-fix-unused-parameter-warnings.tar.gz ingen-fix-unused-parameter-warnings.tar.bz2 ingen-fix-unused-parameter-warnings.zip |
WIP: Fix unused parameter warningsfix-unused-parameter-warnings
Diffstat (limited to 'src/server')
34 files changed, 112 insertions, 112 deletions
diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp index 34045b6d..52ba54dd 100644 --- a/src/server/BlockImpl.hpp +++ b/src/server/BlockImpl.hpp @@ -88,9 +88,9 @@ public: virtual void deactivate(); /** Duplicate this Node. */ - virtual BlockImpl* duplicate(Engine& engine, - const Raul::Symbol& symbol, - GraphImpl* parent) { return nullptr; } + virtual BlockImpl* duplicate(Engine&, const Raul::Symbol&, GraphImpl*) { + return nullptr; + } /** Return true iff this block is activated */ bool activated() const { return _activated; } @@ -102,15 +102,16 @@ public: void set_enabled(bool e) { _enabled = e; } /** Load a preset from the world for this block. */ - virtual LilvState* load_preset(const URI& uri) { return nullptr; } + virtual LilvState* load_preset(const URI&) { return nullptr; } /** Restore `state`. */ - virtual void apply_state(const UPtr<Worker>& worker, const LilvState* state) {} + virtual void apply_state(const UPtr<Worker>&, const LilvState*) {} /** Save current state as preset. */ - virtual boost::optional<Resource> - save_preset(const URI& bundle, - const Properties& props) { return boost::optional<Resource>(); } + virtual boost::optional<Resource> save_preset(const URI&, const Properties&) + { + return boost::optional<Resource>(); + } /** Learn the next incoming MIDI event (for internals) */ virtual void learn() {} diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp index eef594a3..fa59fe19 100644 --- a/src/server/Buffer.cpp +++ b/src/server/Buffer.cpp @@ -44,8 +44,7 @@ Buffer::Buffer(BufferFactory& bufs, LV2_URID type, LV2_URID value_type, uint32_t capacity, - bool external, - void* buf) + bool external) : _factory(bufs) , _next(nullptr) , _buf(external ? nullptr : aligned_alloc(capacity)) @@ -263,7 +262,7 @@ Buffer::peak(const RunContext& context) const } void -Buffer::prepare_write(RunContext& context) +Buffer::prepare_write(RunContext&) { if (_type == _factory.uris().atom_Sequence) { LV2_Atom* atom = get<LV2_Atom>(); @@ -275,7 +274,7 @@ Buffer::prepare_write(RunContext& context) } void -Buffer::prepare_output_write(RunContext& context) +Buffer::prepare_output_write(RunContext&) { if (_type == _factory.uris().atom_Sequence) { LV2_Atom* atom = get<LV2_Atom>(); diff --git a/src/server/Buffer.hpp b/src/server/Buffer.hpp index d9b4e7ad..f1592b54 100644 --- a/src/server/Buffer.hpp +++ b/src/server/Buffer.hpp @@ -44,8 +44,7 @@ public: LV2_URID type, LV2_URID value_type, uint32_t capacity, - bool external = false, - void* buf = nullptr); + bool external = false); Buffer(const Buffer&) = delete; Buffer& operator=(const Buffer&) = delete; diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp index c9eeed49..dad61021 100644 --- a/src/server/BufferFactory.cpp +++ b/src/server/BufferFactory.cpp @@ -142,7 +142,7 @@ BufferFactory::get_buffer(LV2_URID type, BufferRef BufferFactory::claim_buffer(LV2_URID type, LV2_URID value_type, - uint32_t capacity) + uint32_t /*capacity*/) { Buffer* try_head = try_get_buffer(type); if (!try_head) { diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index 45df0e8f..668de773 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -123,7 +123,7 @@ ControlBindings::midi_event_key(uint16_t size, const uint8_t* buf, uint16_t& val } bool -ControlBindings::set_port_binding(RunContext& context, +ControlBindings::set_port_binding(RunContext&, PortImpl* port, Binding* binding, const Atom& value) @@ -373,7 +373,7 @@ ControlBindings::get_all(const Raul::Path& path, std::vector<Binding*>& bindings } void -ControlBindings::remove(RunContext& ctx, const std::vector<Binding*>& bindings) +ControlBindings::remove(RunContext&, const std::vector<Binding*>& bindings) { for (Binding* b : bindings) { _bindings->erase(*b); @@ -414,7 +414,7 @@ ControlBindings::pre_process(RunContext& ctx, Buffer* buffer) } void -ControlBindings::post_process(RunContext& context, Buffer* buffer) +ControlBindings::post_process(RunContext&, Buffer* buffer) { if (buffer->get<LV2_Atom>()) { buffer->append_event_buffer(_feedback.get()); diff --git a/src/server/DirectDriver.hpp b/src/server/DirectDriver.hpp index b3d49af0..5f177403 100644 --- a/src/server/DirectDriver.hpp +++ b/src/server/DirectDriver.hpp @@ -60,23 +60,20 @@ public: return nullptr; } - void add_port(RunContext& context, EnginePort* port) override { + void add_port(RunContext&, EnginePort* port) override { _ports.push_back(*port); } - void remove_port(RunContext& context, EnginePort* port) override { + void remove_port(RunContext&, EnginePort* port) override { _ports.erase(_ports.iterator_to(*port)); } - void rename_port(const Raul::Path& old_path, - const Raul::Path& new_path) override {} + void rename_port(const Raul::Path&, const Raul::Path&) override {} - void port_property(const Raul::Path& path, - const URI& uri, - const Atom& value) override {} + void port_property(const Raul::Path&, const URI&, const Atom&) override {} - void register_port(EnginePort& port) override {} - void unregister_port(EnginePort& port) override {} + void register_port(EnginePort&) override {} + void unregister_port(EnginePort&) override {} SampleCount block_length() const override { return _block_length; } @@ -88,7 +85,7 @@ public: return _engine.run_context().start(); } - void append_time_events(RunContext& context, Buffer& buffer) override {} + void append_time_events(RunContext&, Buffer&) override {} int real_time_priority() override { return 60; } diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp index 2823da05..91d57df4 100644 --- a/src/server/DuplexPort.cpp +++ b/src/server/DuplexPort.cpp @@ -155,7 +155,7 @@ DuplexPort::setup_buffers(RunContext& ctx, BufferFactory& bufs, uint32_t poly) void DuplexPort::set_is_driver_port(BufferFactory& bufs) { - _voices->at(0).buffer = new Buffer(bufs, buffer_type(), _value.type(), 0, true, nullptr); + _voices->at(0).buffer = new Buffer(bufs, buffer_type(), _value.type(), 0, true); PortImpl::set_is_driver_port(bufs); } @@ -167,7 +167,7 @@ DuplexPort::set_driver_buffer(void* buf, uint32_t capacity) } uint32_t -DuplexPort::max_tail_poly(RunContext& context) const +DuplexPort::max_tail_poly(RunContext&) const { return std::max(_poly, parent_graph()->internal_poly_process()); } diff --git a/src/server/Engine.hpp b/src/server/Engine.hpp index 02da0719..d71b0238 100644 --- a/src/server/Engine.hpp +++ b/src/server/Engine.hpp @@ -110,7 +110,7 @@ public: * * This value is comparable to the value returned by current_time(). */ - inline uint64_t cycle_start_time(const RunContext& context) const { + inline uint64_t cycle_start_time(const RunContext&) const { return _cycle_start_time; } diff --git a/src/server/Event.hpp b/src/server/Event.hpp index 9cd97a35..52e0ec3e 100644 --- a/src/server/Event.hpp +++ b/src/server/Event.hpp @@ -73,7 +73,7 @@ public: virtual void post_process() = 0; /** Write the inverse of this event to `sink`. */ - virtual void undo(Interface& target) {} + virtual void undo(Interface&) {} /** Return true iff this event has been pre-processed. */ inline bool is_prepared() const { return _status != Status::NOT_PREPARED; } diff --git a/src/server/GraphPlugin.hpp b/src/server/GraphPlugin.hpp index ef741587..462485ff 100644 --- a/src/server/GraphPlugin.hpp +++ b/src/server/GraphPlugin.hpp @@ -37,14 +37,19 @@ public: const Raul::Symbol& symbol, const std::string& name) : PluginImpl(uris, uris.ingen_Graph.urid, uri) - {} - - BlockImpl* instantiate(BufferFactory& bufs, - const Raul::Symbol& symbol, - bool polyphonic, - GraphImpl* parent, - Engine& engine, - const LilvState* state) override + { + set_property(uris.lv2_symbol, uris.forge.alloc(symbol)); + if (!name.empty()) { + set_property(uris.doap_name, uris.forge.alloc(name)); + } + } + + BlockImpl* instantiate(BufferFactory&, + const Raul::Symbol&, + bool, + GraphImpl*, + Engine&, + const LilvState*) override { return nullptr; } diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 76382270..c61977ab 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -124,7 +124,7 @@ InputPort::setup_buffers(RunContext& ctx, BufferFactory& bufs, uint32_t poly) } void -InputPort::add_arc(RunContext& context, ArcImpl& c) +InputPort::add_arc(RunContext&, ArcImpl& c) { _arcs.push_front(c); } @@ -136,7 +136,7 @@ InputPort::remove_arc(ArcImpl& arc) } uint32_t -InputPort::max_tail_poly(RunContext& context) const +InputPort::max_tail_poly(RunContext&) const { return parent_block()->parent_graph()->internal_poly_process(); } diff --git a/src/server/InternalPlugin.cpp b/src/server/InternalPlugin.cpp index 49590b24..0695f573 100644 --- a/src/server/InternalPlugin.cpp +++ b/src/server/InternalPlugin.cpp @@ -44,7 +44,7 @@ InternalPlugin::instantiate(BufferFactory& bufs, bool polyphonic, GraphImpl* parent, Engine& engine, - const LilvState* state) + const LilvState*) { const SampleCount srate = engine.sample_rate(); diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp index a331811e..e87f2a04 100644 --- a/src/server/JackDriver.cpp +++ b/src/server/JackDriver.cpp @@ -231,7 +231,7 @@ JackDriver::add_port(RunContext& context, EnginePort* port) } void -JackDriver::remove_port(RunContext& context, EnginePort* port) +JackDriver::remove_port(RunContext&, EnginePort* port) { _ports.erase(_ports.iterator_to(*port)); } diff --git a/src/server/LV2Options.hpp b/src/server/LV2Options.hpp index 7a8b3c20..e39039cf 100644 --- a/src/server/LV2Options.hpp +++ b/src/server/LV2Options.hpp @@ -38,7 +38,7 @@ public: const char* uri() const override { return LV2_OPTIONS__options; } - SPtr<LV2_Feature> feature(World* w, Node* n) override { + SPtr<LV2_Feature> feature(World*, Node*) override { const LV2_Options_Option options[] = { { LV2_OPTIONS_INSTANCE, 0, _uris.bufsz_minBlockLength, sizeof(int32_t), _uris.atom_Int, &_block_length }, diff --git a/src/server/PortAudioDriver.cpp b/src/server/PortAudioDriver.cpp index f67a62bb..e3270466 100644 --- a/src/server/PortAudioDriver.cpp +++ b/src/server/PortAudioDriver.cpp @@ -175,37 +175,34 @@ PortAudioDriver::get_port(const Raul::Path& path) } void -PortAudioDriver::add_port(RunContext& context, EnginePort* port) +PortAudioDriver::add_port(RunContext&, EnginePort* port) { _ports.push_back(*port); } void -PortAudioDriver::remove_port(RunContext& context, EnginePort* port) +PortAudioDriver::remove_port(RunContext&, EnginePort* port) { _ports.erase(_ports.iterator_to(*port)); } void -PortAudioDriver::register_port(EnginePort& port) +PortAudioDriver::register_port(EnginePort&) { } void -PortAudioDriver::unregister_port(EnginePort& port) +PortAudioDriver::unregister_port(EnginePort&) { } void -PortAudioDriver::rename_port(const Raul::Path& old_path, - const Raul::Path& new_path) +PortAudioDriver::rename_port(const Raul::Path&, const Raul::Path&) { } void -PortAudioDriver::port_property(const Raul::Path& path, - const URI& uri, - const Atom& value) +PortAudioDriver::port_property(const Raul::Path&, const URI&, const Atom&) { } @@ -239,7 +236,7 @@ PortAudioDriver::create_port(DuplexPort* graph_port) } void -PortAudioDriver::pre_process_port(RunContext& context, +PortAudioDriver::pre_process_port(RunContext&, EnginePort* port, const void* inputs, void* outputs) @@ -260,19 +257,16 @@ PortAudioDriver::pre_process_port(RunContext& context, } void -PortAudioDriver::post_process_port(RunContext& context, - EnginePort* port, - const void* inputs, - void* outputs) +PortAudioDriver::post_process_port(RunContext&, EnginePort*, const void*, void*) { } int -PortAudioDriver::process_cb(const void* inputs, - void* outputs, - unsigned long nframes, - const PaStreamCallbackTimeInfo* time, - PaStreamCallbackFlags flags) +PortAudioDriver::process_cb(const void* inputs, + void* outputs, + unsigned long nframes, + const PaStreamCallbackTimeInfo*, + PaStreamCallbackFlags) { _engine.advance(nframes); _timer->update(_engine.current_time(), _engine.run_context().start()); diff --git a/src/server/PortAudioDriver.hpp b/src/server/PortAudioDriver.hpp index e50cc8a6..efea9d25 100644 --- a/src/server/PortAudioDriver.hpp +++ b/src/server/PortAudioDriver.hpp @@ -65,7 +65,7 @@ public: void register_port(EnginePort& port) override; void unregister_port(EnginePort& port) override; - void append_time_events(RunContext& context, Buffer& buffer) override {} + void append_time_events(RunContext&, Buffer&) override {} SampleCount frame_time() const override; diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index f03939d3..ee25395f 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -108,7 +108,7 @@ PortImpl::get_buffers(BufferFactory& bufs, GetFn get, const MPtr<Voices>& voices, uint32_t poly, - size_t num_in_arcs) const + size_t /*num_in_arcs*/) const { for (uint32_t v = 0; v < poly; ++v) { voices->at(v).buffer.reset(); @@ -120,7 +120,7 @@ PortImpl::get_buffers(BufferFactory& bufs, } bool -PortImpl::setup_buffers(RunContext& ctx, BufferFactory& bufs, uint32_t poly) +PortImpl::setup_buffers(RunContext&, BufferFactory& bufs, uint32_t poly) { return get_buffers(bufs, &BufferFactory::claim_buffer, _voices, poly, 0); } @@ -204,7 +204,7 @@ PortImpl::deactivate() } void -PortImpl::set_voices(RunContext& context, MPtr<Voices>&& voices) +PortImpl::set_voices(RunContext&, MPtr<Voices>&& voices) { _voices = std::move(voices); connect_buffers(); @@ -375,7 +375,7 @@ PortImpl::apply_poly(RunContext& context, uint32_t poly) } void -PortImpl::set_buffer_size(RunContext& context, BufferFactory& bufs, size_t size) +PortImpl::set_buffer_size(RunContext&, BufferFactory&, size_t size) { _buffer_size = size; @@ -403,7 +403,7 @@ PortImpl::recycle_buffers() } void -PortImpl::set_is_driver_port(BufferFactory& bufs) +PortImpl::set_is_driver_port(BufferFactory&) { _is_driver_port = true; } @@ -555,6 +555,11 @@ PortImpl::pre_process(RunContext& context) } void +PortImpl::pre_run(RunContext&) +{ +} + +void PortImpl::post_process(RunContext& context) { for (uint32_t v = 0; v < _poly; ++v) { diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp index d9b81a16..37eb003a 100644 --- a/src/server/PortImpl.hpp +++ b/src/server/PortImpl.hpp @@ -167,7 +167,7 @@ public: /** Called once per process cycle */ virtual void pre_process(RunContext& context); - virtual void pre_run(RunContext& context) {} + virtual void pre_run(RunContext& context); virtual void post_process(RunContext& context); /** Clear/silence all buffers */ @@ -185,9 +185,7 @@ public: This is used for Graph ports, so e.g. a control input has the range of all the ports it is connected to. */ - virtual void inherit_neighbour(const PortImpl* port, - Properties& remove, - Properties& add) {} + virtual void inherit_neighbour(const PortImpl*, Properties&, Properties&) {} virtual void connect_buffers(SampleCount offset=0); virtual void recycle_buffers(); diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp index 02a6f639..0350d15b 100644 --- a/src/server/PostProcessor.cpp +++ b/src/server/PostProcessor.cpp @@ -28,8 +28,8 @@ class Sentinel : public Event { public: Sentinel(Engine& engine) : Event(engine) {} - bool pre_process(PreProcessContext& ctx) override { return false; } - void execute(RunContext& context) override {} + bool pre_process(PreProcessContext&) override { return false; } + void execute(RunContext&) override {} void post_process() override {} }; @@ -54,7 +54,7 @@ PostProcessor::~PostProcessor() } void -PostProcessor::append(RunContext& context, Event* first, Event* last) +PostProcessor::append(RunContext&, Event* first, Event* last) { assert(first); assert(last); diff --git a/src/server/Task.cpp b/src/server/Task.cpp index 63f3ef34..66858228 100644 --- a/src/server/Task.cpp +++ b/src/server/Task.cpp @@ -59,7 +59,7 @@ Task::run(RunContext& context) } Task* -Task::steal(RunContext& context) +Task::steal(RunContext&) { if (_mode == Mode::PARALLEL) { const unsigned i = _next++; diff --git a/src/server/ThreadManager.hpp b/src/server/ThreadManager.hpp index bf14a423..775b7327 100644 --- a/src/server/ThreadManager.hpp +++ b/src/server/ThreadManager.hpp @@ -38,20 +38,26 @@ public: static inline void set_flag(ThreadFlag f) { #ifndef NDEBUG flags = ((unsigned)flags | f); +#else + (void)f; #endif } static inline void unset_flag(ThreadFlag f) { #ifndef NDEBUG flags = ((unsigned)flags & (~f)); +#else + (void)f; #endif } static inline void assert_thread(ThreadFlag f) { + (void)f; assert(single_threaded || (flags & f)); } static inline void assert_not_thread(ThreadFlag f) { + (void)f; assert(single_threaded || !(flags & f)); } diff --git a/src/server/UndoStack.cpp b/src/server/UndoStack.cpp index 77b4706f..d2bae958 100644 --- a/src/server/UndoStack.cpp +++ b/src/server/UndoStack.cpp @@ -44,7 +44,7 @@ UndoStack::start_entry() } bool -UndoStack::write(const LV2_Atom* msg, int32_t default_id) +UndoStack::write(const LV2_Atom* msg, int32_t) { _stack.back().push_event(msg); return true; @@ -149,10 +149,10 @@ struct ListContext { flags = SERD_LIST_CONT; serd_writer_write_statement(writer, flags|oflags, nullptr, &node, &p, value, nullptr, nullptr); - end_node(writer, &node); + end_node(&node); } - void end_node(SerdWriter* writer, const SerdNode* node) { + void end_node(const SerdNode* node) { // Prepare for next call: node rdf:rest ... s = *node; p = serd_node_from_string(SERD_URI, NS_RDF "rest"); @@ -197,7 +197,7 @@ UndoStack::write_entry(Sratom* sratom, &node, &p, atom->type, atom->size, LV2_ATOM_BODY_CONST(atom)); - ctx.end_node(writer, &node); + ctx.end_node(&node); } ctx.end(writer); diff --git a/src/server/Worker.cpp b/src/server/Worker.cpp index 59ef306f..81698b32 100644 --- a/src/server/Worker.cpp +++ b/src/server/Worker.cpp @@ -86,7 +86,7 @@ Worker::request(LV2Block* block, } SPtr<LV2_Feature> -Worker::Schedule::feature(World* world, Node* n) +Worker::Schedule::feature(World*, Node* n) { LV2Block* block = dynamic_cast<LV2Block*>(n); if (!block) { diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp index 5d2d511c..5ef55012 100644 --- a/src/server/events/Copy.cpp +++ b/src/server/events/Copy.cpp @@ -135,7 +135,7 @@ ends_with(const std::string& str, const std::string& end) } bool -Copy::engine_to_filesystem(PreProcessContext& ctx) +Copy::engine_to_filesystem(PreProcessContext&) { // Ensure source is a graph SPtr<GraphImpl> graph = dynamic_ptr_cast<GraphImpl>(_old_block); @@ -161,7 +161,7 @@ Copy::engine_to_filesystem(PreProcessContext& ctx) } bool -Copy::filesystem_to_engine(PreProcessContext& ctx) +Copy::filesystem_to_engine(PreProcessContext&) { if (!_engine.world()->parser()) { return Event::pre_process_done(Status::INTERNAL_ERROR); @@ -187,7 +187,7 @@ Copy::filesystem_to_engine(PreProcessContext& ctx) } void -Copy::execute(RunContext& context) +Copy::execute(RunContext&) { if (_block && _compiled_graph) { _parent->set_compiled_graph(std::move(_compiled_graph)); diff --git a/src/server/events/CreateBlock.cpp b/src/server/events/CreateBlock.cpp index fabdbd85..c31a9ac3 100644 --- a/src/server/events/CreateBlock.cpp +++ b/src/server/events/CreateBlock.cpp @@ -153,7 +153,7 @@ CreateBlock::pre_process(PreProcessContext& ctx) } void -CreateBlock::execute(RunContext& context) +CreateBlock::execute(RunContext&) { if (_status == Status::SUCCESS && _compiled_graph) { _graph->set_compiled_graph(std::move(_compiled_graph)); diff --git a/src/server/events/CreatePort.cpp b/src/server/events/CreatePort.cpp index a79c85ef..7092263e 100644 --- a/src/server/events/CreatePort.cpp +++ b/src/server/events/CreatePort.cpp @@ -84,7 +84,7 @@ CreatePort::CreatePort(Engine& engine, } bool -CreatePort::pre_process(PreProcessContext& ctx) +CreatePort::pre_process(PreProcessContext&) { if (_port_type == PortType::UNKNOWN) { return Event::pre_process_done(Status::UNKNOWN_TYPE, _path); diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index ad412beb..322db2ab 100644 --- a/src/server/events/Get.cpp +++ b/src/server/events/Get.cpp @@ -44,7 +44,7 @@ Get::Get(Engine& engine, {} bool -Get::pre_process(PreProcessContext& ctx) +Get::pre_process(PreProcessContext&) { std::lock_guard<Store::Mutex> lock(_engine.store()->mutex()); diff --git a/src/server/events/Get.hpp b/src/server/events/Get.hpp index 9598010c..4e99d4f2 100644 --- a/src/server/events/Get.hpp +++ b/src/server/events/Get.hpp @@ -46,8 +46,8 @@ public: SampleCount timestamp, const ingen::Get& msg); - bool pre_process(PreProcessContext& ctx) override; - void execute(RunContext& context) override {} + bool pre_process(PreProcessContext&) override; + void execute(RunContext&) override {} void post_process() override; private: diff --git a/src/server/events/Mark.cpp b/src/server/events/Mark.cpp index be943533..edc0377a 100644 --- a/src/server/events/Mark.cpp +++ b/src/server/events/Mark.cpp @@ -72,7 +72,7 @@ Mark::pre_process(PreProcessContext& ctx) } void -Mark::execute(RunContext& context) +Mark::execute(RunContext&) { for (auto& g : _compiled_graphs) { g.first->set_compiled_graph(std::move(g.second)); diff --git a/src/server/events/Move.cpp b/src/server/events/Move.cpp index 1890dc5f..35a508fe 100644 --- a/src/server/events/Move.cpp +++ b/src/server/events/Move.cpp @@ -39,7 +39,7 @@ Move::Move(Engine& engine, } bool -Move::pre_process(PreProcessContext& ctx) +Move::pre_process(PreProcessContext&) { std::lock_guard<Store::Mutex> lock(_engine.store()->mutex()); @@ -67,7 +67,7 @@ Move::pre_process(PreProcessContext& ctx) } void -Move::execute(RunContext& context) +Move::execute(RunContext&) { } diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp index fa36d739..5052b872 100644 --- a/src/server/events/SetPortValue.cpp +++ b/src/server/events/SetPortValue.cpp @@ -50,7 +50,7 @@ SetPortValue::SetPortValue(Engine& engine, } bool -SetPortValue::pre_process(PreProcessContext& ctx) +SetPortValue::pre_process(PreProcessContext&) { ingen::URIs& uris = _engine.world()->uris(); if (_port->is_output()) { diff --git a/src/server/events/Undo.cpp b/src/server/events/Undo.cpp index 0c307e85..171df3ec 100644 --- a/src/server/events/Undo.cpp +++ b/src/server/events/Undo.cpp @@ -41,7 +41,7 @@ Undo::Undo(Engine& engine, {} bool -Undo::pre_process(PreProcessContext& ctx) +Undo::pre_process(PreProcessContext&) { const UPtr<UndoStack>& stack = _is_redo ? _engine.redo_stack() : _engine.undo_stack(); const Event::Mode mode = _is_redo ? Event::Mode::REDO : Event::Mode::UNDO; @@ -70,7 +70,7 @@ Undo::pre_process(PreProcessContext& ctx) } void -Undo::execute(RunContext& context) +Undo::execute(RunContext&) { } diff --git a/src/server/ingen_lv2.cpp b/src/server/ingen_lv2.cpp index 04cc5a33..3d9421e9 100644 --- a/src/server/ingen_lv2.cpp +++ b/src/server/ingen_lv2.cpp @@ -153,7 +153,7 @@ public: } } - void post_process_port(RunContext& context, EnginePort* port) { + void post_process_port(RunContext&, EnginePort* port) { DuplexPort* graph_port = port->graph_port(); // No copying necessary, host buffers are used directly @@ -206,7 +206,7 @@ public: } /** Add a port. Called only during init or restore. */ - void add_port(RunContext& context, EnginePort* port) override { + void add_port(RunContext&, EnginePort* port) override { const uint32_t index = port->graph_port()->index(); if (_ports.size() <= index) { _ports.resize(index + 1); @@ -215,32 +215,29 @@ public: } /** Remove a port. Called only during init or restore. */ - void remove_port(RunContext& context, EnginePort* port) override { + void remove_port(RunContext&, EnginePort* port) override { const uint32_t index = port->graph_port()->index(); _ports[index] = nullptr; } /** Unused since LV2 has no dynamic ports. */ - void register_port(EnginePort& port) override {} + void register_port(EnginePort&) override {} /** Unused since LV2 has no dynamic ports. */ - void unregister_port(EnginePort& port) override {} + void unregister_port(EnginePort&) override {} /** Unused since LV2 has no dynamic ports. */ - void rename_port(const Raul::Path& old_path, - const Raul::Path& new_path) override {} + void rename_port(const Raul::Path&, const Raul::Path&) override {} /** Unused since LV2 has no dynamic ports. */ - void port_property(const Raul::Path& path, - const URI& uri, - const Atom& value) override {} + void port_property(const Raul::Path&, const URI&, const Atom&) override {} EnginePort* create_port(DuplexPort* graph_port) override { graph_port->set_is_driver_port(*_engine.buffer_factory()); return new EnginePort(graph_port); } - void append_time_events(RunContext& context, Buffer& buffer) override { + void append_time_events(RunContext&, Buffer& buffer) override { const URIs& uris = _engine.world()->uris(); LV2_Atom_Sequence* seq = (LV2_Atom_Sequence*)_ports[0]->buffer(); LV2_ATOM_SEQUENCE_FOREACH(seq, ev) { @@ -309,7 +306,7 @@ public: free(buf); } - void flush_to_ui(RunContext& context) { + void flush_to_ui(RunContext&) { if (_ports.size() < 2) { _engine.log().rt_error("Standard control ports are not present\n"); return; @@ -829,8 +826,7 @@ lib_get_plugin(LV2_Lib_Handle handle, uint32_t index) /** LV2 plugin library entry point */ LV2_SYMBOL_EXPORT const LV2_Lib_Descriptor* -lv2_lib_descriptor(const char* bundle_path, - const LV2_Feature*const* features) +lv2_lib_descriptor(const char* bundle_path, const LV2_Feature*const*) { static const uint32_t desc_size = sizeof(LV2_Lib_Descriptor); Lib* lib = new Lib(bundle_path); diff --git a/src/server/internals/Note.cpp b/src/server/internals/Note.cpp index 9d39f345..f38c4e0e 100644 --- a/src/server/internals/Note.cpp +++ b/src/server/internals/Note.cpp @@ -373,7 +373,7 @@ NoteNode::all_notes_off(RunContext& context, FrameTime time) } void -NoteNode::sustain_on(RunContext& context, FrameTime time) +NoteNode::sustain_on(RunContext&, FrameTime) { _sustain = true; } |