1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

Cleanup: Fix some warnings

This commit is contained in:
reuk 2020-04-26 20:22:30 +01:00 committed by reuk
parent 702940301c
commit b7e4099cd5
3 changed files with 5 additions and 4 deletions

View file

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

View file

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

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);