summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/TurtleWriter.cpp2
-rw-r--r--src/URIs.cpp2
-rw-r--r--src/server/BlockImpl.cpp7
-rw-r--r--src/server/Buffer.cpp6
-rw-r--r--src/server/BufferFactory.cpp4
-rw-r--r--src/server/ControlBindings.cpp8
-rw-r--r--src/server/DuplexPort.cpp2
-rw-r--r--src/server/GraphImpl.cpp4
-rw-r--r--src/server/InputPort.cpp4
-rw-r--r--src/server/InternalPlugin.cpp2
-rw-r--r--src/server/PortImpl.cpp10
-rw-r--r--src/server/PostProcessor.cpp6
-rw-r--r--src/server/Task.cpp2
-rw-r--r--src/server/UndoStack.cpp4
-rw-r--r--src/server/Worker.cpp2
-rw-r--r--src/server/events/Copy.cpp6
-rw-r--r--src/server/events/CreateBlock.cpp2
-rw-r--r--src/server/events/CreatePort.cpp2
-rw-r--r--src/server/events/Get.cpp2
-rw-r--r--src/server/events/Mark.cpp2
-rw-r--r--src/server/events/Move.cpp2
-rw-r--r--src/server/events/SetPortValue.cpp2
22 files changed, 39 insertions, 44 deletions
diff --git a/src/TurtleWriter.cpp b/src/TurtleWriter.cpp
index 1ed9399e..43b40fa7 100644
--- a/src/TurtleWriter.cpp
+++ b/src/TurtleWriter.cpp
@@ -86,7 +86,7 @@ TurtleWriter::~TurtleWriter()
}
bool
-TurtleWriter::write(const LV2_Atom* msg, int32_t default_id)
+TurtleWriter::write(const LV2_Atom* msg, int32_t)
{
if (!_wrote_prefixes) {
// Write namespace prefixes once to reduce traffic
diff --git a/src/URIs.cpp b/src/URIs.cpp
index 7cd94165..dfe6b867 100644
--- a/src/URIs.cpp
+++ b/src/URIs.cpp
@@ -37,7 +37,7 @@
namespace ingen {
URIs::Quark::Quark(Forge& forge,
- URIMap* map,
+ URIMap*,
LilvWorld* lworld,
const char* str)
: URI(str)
diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp
index abea85eb..d4d60e5c 100644
--- a/src/server/BlockImpl.cpp
+++ b/src/server/BlockImpl.cpp
@@ -39,7 +39,7 @@ BlockImpl::BlockImpl(PluginImpl* plugin,
const Raul::Symbol& symbol,
bool polyphonic,
GraphImpl* parent,
- SampleRate srate)
+ SampleRate)
: NodeImpl(plugin->uris(), parent, symbol)
, _plugin(plugin)
, _polyphony((polyphonic && parent) ? parent->internal_poly() : 1)
@@ -294,10 +294,7 @@ BlockImpl::post_process(RunContext& context)
}
void
-BlockImpl::set_port_buffer(uint32_t voice,
- uint32_t port_num,
- const BufferRef& buf,
- SampleCount offset)
+BlockImpl::set_port_buffer(uint32_t, uint32_t, const BufferRef&, SampleCount)
{
/*std::cout << path() << " set port " << port_num << " voice " << voice
<< " buffer " << buf << " offset " << offset << std::endl;*/
diff --git a/src/server/Buffer.cpp b/src/server/Buffer.cpp
index 21a757c6..fffc86b0 100644
--- a/src/server/Buffer.cpp
+++ b/src/server/Buffer.cpp
@@ -48,7 +48,7 @@ Buffer::Buffer(BufferFactory& bufs,
LV2_URID value_type,
uint32_t capacity,
bool external,
- void* buf)
+ void*)
: _factory(bufs)
, _next(nullptr)
, _buf(external ? nullptr : aligned_alloc(capacity))
@@ -267,7 +267,7 @@ Buffer::peak(const RunContext& context) const
}
void
-Buffer::prepare_write(RunContext& context)
+Buffer::prepare_write(RunContext&)
{
if (_type == _factory.uris().atom_Sequence) {
auto* atom = get<LV2_Atom>();
@@ -279,7 +279,7 @@ Buffer::prepare_write(RunContext& context)
}
void
-Buffer::prepare_output_write(RunContext& context)
+Buffer::prepare_output_write(RunContext&)
{
if (_type == _factory.uris().atom_Sequence) {
auto* atom = get<LV2_Atom>();
diff --git a/src/server/BufferFactory.cpp b/src/server/BufferFactory.cpp
index d4f9da33..23b44884 100644
--- a/src/server/BufferFactory.cpp
+++ b/src/server/BufferFactory.cpp
@@ -145,9 +145,7 @@ BufferFactory::get_buffer(LV2_URID type,
}
BufferRef
-BufferFactory::claim_buffer(LV2_URID type,
- LV2_URID value_type,
- uint32_t capacity)
+BufferFactory::claim_buffer(LV2_URID type, LV2_URID value_type, uint32_t)
{
Buffer* try_head = try_get_buffer(type);
if (!try_head) {
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp
index 41f00742..f1380462 100644
--- a/src/server/ControlBindings.cpp
+++ b/src/server/ControlBindings.cpp
@@ -117,7 +117,7 @@ ControlBindings::binding_key(const Atom& binding) const
}
ControlBindings::Key
-ControlBindings::midi_event_key(uint16_t size, const uint8_t* buf, uint16_t& value)
+ControlBindings::midi_event_key(uint16_t, const uint8_t* buf, uint16_t& value)
{
switch (lv2_midi_message_type(buf)) {
case LV2_MIDI_MSG_CONTROLLER:
@@ -138,7 +138,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)
@@ -387,7 +387,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);
@@ -427,7 +427,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/DuplexPort.cpp b/src/server/DuplexPort.cpp
index 854ada02..ffcb711f 100644
--- a/src/server/DuplexPort.cpp
+++ b/src/server/DuplexPort.cpp
@@ -181,7 +181,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/GraphImpl.cpp b/src/server/GraphImpl.cpp
index 35afb67f..c0c31b95 100644
--- a/src/server/GraphImpl.cpp
+++ b/src/server/GraphImpl.cpp
@@ -178,8 +178,8 @@ GraphImpl::prepare_internal_poly(BufferFactory& bufs, uint32_t poly)
bool
GraphImpl::apply_internal_poly(RunContext& context,
BufferFactory& bufs,
- Raul::Maid& maid,
- uint32_t poly)
+ Raul::Maid&,
+ uint32_t poly)
{
// TODO: Subgraph dynamic polyphony (i.e. changing port polyphony)
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index a82458f1..43816e45 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -128,7 +128,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);
}
@@ -140,7 +140,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 f7c847b2..8d43a321 100644
--- a/src/server/InternalPlugin.cpp
+++ b/src/server/InternalPlugin.cpp
@@ -45,7 +45,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/PortImpl.cpp b/src/server/PortImpl.cpp
index 837662e0..5161750d 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -115,7 +115,7 @@ PortImpl::get_buffers(BufferFactory& bufs,
GetFn get,
const MPtr<Voices>& voices,
uint32_t poly,
- size_t num_in_arcs) const
+ size_t) const
{
for (uint32_t v = 0; v < poly; ++v) {
voices->at(v).buffer.reset();
@@ -127,7 +127,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);
}
@@ -211,7 +211,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();
@@ -382,7 +382,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;
@@ -410,7 +410,7 @@ PortImpl::recycle_buffers()
}
void
-PortImpl::set_is_driver_port(BufferFactory& bufs)
+PortImpl::set_is_driver_port(BufferFactory&)
{
_is_driver_port = true;
}
diff --git a/src/server/PostProcessor.cpp b/src/server/PostProcessor.cpp
index 6edafa7f..db3c7e57 100644
--- a/src/server/PostProcessor.cpp
+++ b/src/server/PostProcessor.cpp
@@ -30,8 +30,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 {}
};
@@ -56,7 +56,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 48da6040..b61a08eb 100644
--- a/src/server/Task.cpp
+++ b/src/server/Task.cpp
@@ -65,7 +65,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/UndoStack.cpp b/src/server/UndoStack.cpp
index 91e7b9ce..e04daa1a 100644
--- a/src/server/UndoStack.cpp
+++ b/src/server/UndoStack.cpp
@@ -48,7 +48,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;
@@ -156,7 +156,7 @@ struct ListContext {
end_node(writer, &node);
}
- void end_node(SerdWriter* writer, const SerdNode* node) {
+ void end_node(SerdWriter*, const SerdNode* node) {
// Prepare for next call: node rdf:rest ...
s = *node;
p = serd_node_from_string(SERD_URI, NS_RDF "rest");
diff --git a/src/server/Worker.cpp b/src/server/Worker.cpp
index ad5f2fd5..1fd887d0 100644
--- a/src/server/Worker.cpp
+++ b/src/server/Worker.cpp
@@ -88,7 +88,7 @@ Worker::request(LV2Block* block,
}
SPtr<LV2_Feature>
-Worker::Schedule::feature(World& world, Node* n)
+Worker::Schedule::feature(World&, Node* n)
{
auto* block = dynamic_cast<LV2Block*>(n);
if (!block) {
diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp
index a8e08924..5418af4b 100644
--- a/src/server/events/Copy.cpp
+++ b/src/server/events/Copy.cpp
@@ -140,7 +140,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);
@@ -167,7 +167,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);
@@ -193,7 +193,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 e8816954..4b48cfde 100644
--- a/src/server/events/CreateBlock.cpp
+++ b/src/server/events/CreateBlock.cpp
@@ -156,7 +156,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 d1b4f114..04e9bf22 100644
--- a/src/server/events/CreatePort.cpp
+++ b/src/server/events/CreatePort.cpp
@@ -88,7 +88,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 7bb6fd2f..2335c09f 100644
--- a/src/server/events/Get.cpp
+++ b/src/server/events/Get.cpp
@@ -48,7 +48,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/Mark.cpp b/src/server/events/Mark.cpp
index 314805f5..07beb39f 100644
--- a/src/server/events/Mark.cpp
+++ b/src/server/events/Mark.cpp
@@ -75,7 +75,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 857be189..f6a39f1f 100644
--- a/src/server/events/Move.cpp
+++ b/src/server/events/Move.cpp
@@ -41,7 +41,7 @@ Move::Move(Engine& engine,
}
bool
-Move::pre_process(PreProcessContext& ctx)
+Move::pre_process(PreProcessContext&)
{
std::lock_guard<Store::Mutex> lock(_engine.store()->mutex());
diff --git a/src/server/events/SetPortValue.cpp b/src/server/events/SetPortValue.cpp
index 02f3f66b..2eecf9ce 100644
--- a/src/server/events/SetPortValue.cpp
+++ b/src/server/events/SetPortValue.cpp
@@ -54,7 +54,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()) {