Browse Source

Cleaned up a few compiler warnings.

tags/2021-05-28
Julian Storer 14 years ago
parent
commit
5a89fc6ad8
6 changed files with 1617 additions and 1614 deletions
  1. +1
    -1
      extras/audio plugins/demo/Source/PluginEditor.cpp
  2. +8
    -8
      extras/audio plugins/demo/Source/PluginProcessor.cpp
  3. +7
    -7
      extras/audio plugins/demo/Source/PluginProcessor.h
  4. +1596
    -1596
      extras/audio plugins/wrapper/VST/juce_VST_Wrapper.cpp
  5. +3
    -0
      extras/audio plugins/wrapper/juce_PluginHostType.h
  6. +2
    -2
      src/gui/components/buttons/juce_DrawableButton.cpp

+ 1
- 1
extras/audio plugins/demo/Source/PluginEditor.cpp View File

@@ -134,7 +134,7 @@ static const String timeToTimecodeString (const double seconds)
}
// quick-and-dirty function to format a bars/beats string
static const String ppqToBarsBeatsString (double ppq, double lastBarPPQ, int numerator, int denominator)
static const String ppqToBarsBeatsString (double ppq, double /*lastBarPPQ*/, int numerator, int denominator)
{
if (numerator == 0 || denominator == 0)
return "1|1|0";


+ 8
- 8
extras/audio plugins/demo/Source/PluginProcessor.cpp View File

@@ -20,8 +20,8 @@ public:
{
}
bool appliesToNote (const int midiNoteNumber) { return true; }
bool appliesToChannel (const int midiChannel) { return true; }
bool appliesToNote (const int /*midiNoteNumber*/) { return true; }
bool appliesToChannel (const int /*midiChannel*/) { return true; }
};
//==============================================================================
@@ -41,7 +41,7 @@ public:
}
void startNote (const int midiNoteNumber, const float velocity,
SynthesiserSound* sound, const int currentPitchWheelPosition)
SynthesiserSound* /*sound*/, const int /*currentPitchWheelPosition*/)
{
currentAngle = 0.0;
level = velocity * 0.15;
@@ -73,12 +73,12 @@ public:
}
}
void pitchWheelMoved (const int newValue)
void pitchWheelMoved (const int /*newValue*/)
{
// can't be bothered implementing this for the demo!
}
void controllerMoved (const int controllerNumber, const int newValue)
void controllerMoved (const int /*controllerNumber*/, const int /*newValue*/)
{
// not interested in controllers in this case.
}
@@ -206,7 +206,7 @@ const String JuceDemoPluginAudioProcessor::getParameterText (int index)
}
//==============================================================================
void JuceDemoPluginAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBlock)
void JuceDemoPluginAudioProcessor::prepareToPlay (double sampleRate, int /*samplesPerBlock*/)
{
// Use this method as the place to do any pre-playback
// initialisation that you need..
@@ -336,12 +336,12 @@ const String JuceDemoPluginAudioProcessor::getOutputChannelName (const int chann
return String (channelIndex + 1);
}
bool JuceDemoPluginAudioProcessor::isInputChannelStereoPair (int index) const
bool JuceDemoPluginAudioProcessor::isInputChannelStereoPair (int /*index*/) const
{
return true;
}
bool JuceDemoPluginAudioProcessor::isOutputChannelStereoPair (int index) const
bool JuceDemoPluginAudioProcessor::isOutputChannelStereoPair (int /*index*/) const
{
return true;
}


+ 7
- 7
extras/audio plugins/demo/Source/PluginProcessor.h View File

@@ -43,8 +43,8 @@ public:
const String getParameterName (int index);
const String getParameterText (int index);
const String getInputChannelName (const int channelIndex) const;
const String getOutputChannelName (const int channelIndex) const;
const String getInputChannelName (int channelIndex) const;
const String getOutputChannelName (int channelIndex) const;
bool isInputChannelStereoPair (int index) const;
bool isOutputChannelStereoPair (int index) const;
@@ -52,11 +52,11 @@ public:
bool producesMidi() const;
//==============================================================================
int getNumPrograms() { return 0; }
int getCurrentProgram() { return 0; }
void setCurrentProgram (int index) { }
const String getProgramName (int index) { return String::empty; }
void changeProgramName (int index, const String& newName) { }
int getNumPrograms() { return 0; }
int getCurrentProgram() { return 0; }
void setCurrentProgram (int /*index*/) { }
const String getProgramName (int /*index*/) { return String::empty; }
void changeProgramName (int /*index*/, const String& /*newName*/) { }
//==============================================================================
void getStateInformation (MemoryBlock& destData);


+ 1596
- 1596
extras/audio plugins/wrapper/VST/juce_VST_Wrapper.cpp
File diff suppressed because it is too large
View File


+ 3
- 0
extras/audio plugins/wrapper/juce_PluginHostType.h View File

@@ -141,4 +141,7 @@ private:
#endif
return UnknownHost;
}
PluginHostType (const PluginHostType&);
PluginHostType& operator= (const PluginHostType&);
};

+ 2
- 2
src/gui/components/buttons/juce_DrawableButton.cpp View File

@@ -173,8 +173,8 @@ void DrawableButton::paintButton (Graphics& g,
{
g.setFont ((float) textH);
g.setColour (getLookAndFeel().findColour (DrawableButton::textColourId)
.withMultipliedAlpha (isEnabled() ? 1.0f : 0.4f));
g.setColour (findColour (DrawableButton::textColourId)
.withMultipliedAlpha (isEnabled() ? 1.0f : 0.4f));
g.drawFittedText (getButtonText(),
2, getHeight() - textH - 1,


Loading…
Cancel
Save