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:
parent
702940301c
commit
b7e4099cd5
3 changed files with 5 additions and 4 deletions
|
|
@ -1282,6 +1282,9 @@ private:
|
|||
thiran.pushSample (int (channel), input);
|
||||
thiran.setDelay ((float) delay);
|
||||
return thiran.popSample (int (channel));
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
jassertfalse;
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@
|
|||
#include <JuceHeader.h>
|
||||
#include "MainComponent.h"
|
||||
|
||||
Component* createMainContentComponent();
|
||||
|
||||
//==============================================================================
|
||||
class AudioPerformanceTestApplication : public JUCEApplication
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue