Skip to content

Commit

Permalink
Fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mfep committed Apr 17, 2024
1 parent 2586eb2 commit 8d9a572
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/ActivityIndicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "imgui.h"

#include <algorithm>

void mc::ActivityIndicator::render() const
{
constexpr double fade_time_ms = 1000;
Expand Down
4 changes: 2 additions & 2 deletions src/midi/InputNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ std::string_view mc::midi::InputNode::name()
return m_info.m_name;
}

void mc::midi::InputNode::message_callback(double time_stamp,
void mc::midi::InputNode::message_callback(double /*time_stamp*/,
std::vector<unsigned char>* message,
void* user_data)
{
Expand All @@ -61,7 +61,7 @@ void mc::midi::InputNode::message_callback(double time_stam

void mc::midi::InputNode::error_callback(RtMidiError::Type error_code,
const std::string& message,
void* user_data)
void* /*user_data*/)
{
spdlog::error("Error {} occured in MIDI input: \"{}\"", static_cast<int>(error_code), message);
}
2 changes: 1 addition & 1 deletion src/midi/MidiGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Node::~Node()
m_receiver_connections.clear();
}

bool Node::process(data_span data)
bool Node::process(data_span /*data*/)
{
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/midi/OutputNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::string_view mc::midi::OutputNode::name()

void mc::midi::OutputNode::error_callback(RtMidiError::Type error_code,
const std::string& message,
void* user_data)
void* /*user_data*/)
{
spdlog::error("Error {} occured in MIDI output: \"{}\"", static_cast<int>(error_code), message);
}

0 comments on commit 8d9a572

Please sign in to comment.