Browse Source

Cleanup: Fix some warnings

tags/2021-05-28
reuk reuk 5 years ago
parent
commit
b7e4099cd5
3 changed files with 5 additions and 4 deletions
  1. +3
    -0
      examples/Plugins/DSPModulePluginDemo.h
  2. +0
    -2
      extras/AudioPerformanceTest/Source/Main.cpp
  3. +2
    -2
      modules/juce_core/native/juce_linux_Network.cpp

+ 3
- 0
examples/Plugins/DSPModulePluginDemo.h View File

@@ -1282,6 +1282,9 @@ private:
thiran.pushSample (int (channel), input);
thiran.setDelay ((float) delay);
return thiran.popSample (int (channel));
default:
break;
}
jassertfalse;


+ 0
- 2
extras/AudioPerformanceTest/Source/Main.cpp View File

@@ -19,8 +19,6 @@
#include <JuceHeader.h>
#include "MainComponent.h"
Component* createMainContentComponent();
//==============================================================================
class AudioPerformanceTestApplication : public JUCEApplication
{


+ 2
- 2
modules/juce_core/native/juce_linux_Network.cpp View File

@@ -333,7 +333,7 @@ private:
struct addrinfo* result = nullptr;
if (getaddrinfo (serverName.toUTF8(), String (port).toUTF8(), &hints, &result) != 0 || result == 0)
if (getaddrinfo (serverName.toUTF8(), String (port).toUTF8(), &hints, &result) != 0 || result == nullptr)
return 0;
{
@@ -351,7 +351,7 @@ private:
int receiveBufferSize = 16384;
setsockopt (socketHandle, SOL_SOCKET, SO_RCVBUF, (char*) &receiveBufferSize, sizeof (receiveBufferSize));
setsockopt (socketHandle, SOL_SOCKET, SO_KEEPALIVE, 0, 0);
setsockopt (socketHandle, SOL_SOCKET, SO_KEEPALIVE, nullptr, 0);
#if JUCE_MAC
setsockopt (socketHandle, SOL_SOCKET, SO_NOSIGPIPE, 0, 0);


Loading…
Cancel
Save