From b1e48230668d9dbc2f4ef223047f48817670244a Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 15 Sep 2014 17:31:43 +0100 Subject: [PATCH] Avoided some gcc compiler warnings --- modules/juce_audio_devices/native/juce_linux_ALSA.cpp | 2 +- modules/juce_core/native/juce_linux_Network.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/juce_audio_devices/native/juce_linux_ALSA.cpp b/modules/juce_audio_devices/native/juce_linux_ALSA.cpp index 9bc7ecf4bb..091ffbab54 100644 --- a/modules/juce_audio_devices/native/juce_linux_ALSA.cpp +++ b/modules/juce_audio_devices/native/juce_linux_ALSA.cpp @@ -41,7 +41,7 @@ namespace return err; } #else - #define JUCE_ALSA_LOG(x) + #define JUCE_ALSA_LOG(x) {} #define JUCE_CHECKED_RESULT(x) (x) #endif diff --git a/modules/juce_core/native/juce_linux_Network.cpp b/modules/juce_core/native/juce_linux_Network.cpp index af8879a99c..6871aa5469 100644 --- a/modules/juce_core/native/juce_linux_Network.cpp +++ b/modules/juce_core/native/juce_linux_Network.cpp @@ -263,7 +263,7 @@ private: } } - String responseHeader (readResponse (socketHandle, timeOutTime)); + String responseHeader (readResponse (timeOutTime)); position = 0; if (responseHeader.isNotEmpty()) @@ -302,7 +302,7 @@ private: } //============================================================================== - String readResponse (const int socketHandle, const uint32 timeOutTime) + String readResponse (const uint32 timeOutTime) { int numConsecutiveLFs = 0; MemoryOutputStream buffer; @@ -338,7 +338,8 @@ private: dest << "\r\n" << key << ' ' << value; } - static void writeHost (MemoryOutputStream& dest, const bool isPost, const String& path, const String& host, const int port) + static void writeHost (MemoryOutputStream& dest, const bool isPost, + const String& path, const String& host, int /*port*/) { dest << (isPost ? "POST " : "GET ") << path << " HTTP/1.0\r\nHost: " << host; }