Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings to allow compilation with -Werror #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions shared/DSPFilters/include/DspFilters/Elliptic.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ class AnalogLowPass : public LayoutBase
#else
#endif

double m_p0;
double m_q;
double m_K;
double m_Kprime;
double m_e;
Expand All @@ -108,7 +106,6 @@ class AnalogLowPass : public LayoutBase
double m_d1[100];
double m_q1[100];
double m_z1[100];
double m_f1[100];
double m_s1[100];
double m_p [100];
double m_zw1[100];
Expand Down
2 changes: 1 addition & 1 deletion shared/DSPFilters/include/DspFilters/RootFinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RootFinderBase
public:
struct Array
{
Array (int max, complex_t* values)
Array (int /*max*/, complex_t* /*values*/)
// : m_max (max)
// , m_values (values)
{
Expand Down
12 changes: 6 additions & 6 deletions shared/DSPFilters/include/DspFilters/State.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class TransposedDirectFormI
template <typename Sample>
inline Sample process1 (const Sample in,
const BiquadBase& s,
const double vsa)
const double /*vsa*/)
{
double out;

Expand Down Expand Up @@ -262,7 +262,7 @@ class ChannelsState
{
}

const int getNumChannels() const
int getNumChannels() const
{
return Channels;
}
Expand Down Expand Up @@ -297,7 +297,7 @@ template <class StateType>
class ChannelsState <0, StateType>
{
public:
const int getNumChannels() const
int getNumChannels() const
{
return 0;
}
Expand All @@ -308,9 +308,9 @@ class ChannelsState <0, StateType>
}

template <class FilterDesign, typename Sample>
void process (int numSamples,
Sample* const* arrayOfChannels,
FilterDesign& filter)
void process (int /*numSamples*/,
Sample* const* /*arrayOfChannels*/,
FilterDesign& /*filter*/)
{
throw std::logic_error ("attempt to process empty ChannelState");
}
Expand Down
4 changes: 2 additions & 2 deletions shared/DSPFilters/source/Documentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Filter family namespaces
#include <iomanip>

namespace {

#if 0
void UsageExamples ()
{
// create a two channel audio buffer
Expand Down Expand Up @@ -452,5 +452,5 @@ void UsageExamples ()
std::cout << os.str();
}
}

#endif
}
2 changes: 1 addition & 1 deletion shared/DSPFilters/source/PoleFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ BandPassTransform::BandPassTransform (double fc,
//
#ifndef NDEBUG
ComplexPair p2 = transform (pair.poles.second);
ComplexPair z2 = transform (pair.zeros.second);
transform (pair.zeros.second);
assert (p2.first == std::conj (p1.first));
assert (p2.second == std::conj (p1.second));
#endif
Expand Down