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

Warnings: Fix missing-prototypes warnings

This commit is contained in:
reuk 2022-04-11 13:30:46 +01:00
parent 3bf635e004
commit 19ddbe2368
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
38 changed files with 133 additions and 75 deletions

View file

@ -25,7 +25,7 @@ namespace juce
namespace SampleRateHelpers
{
const auto& getAllSampleRates()
static inline const std::vector<double>& getAllSampleRates()
{
static auto sampleRates = []
{

View file

@ -1416,6 +1416,7 @@ private:
};
//==============================================================================
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr);
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr)
{
auto thread = std::make_unique<OboeRealtimeThread>();

View file

@ -1273,6 +1273,7 @@ private:
};
//==============================================================================
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr);
pthread_t juce_createRealtimeAudioThread (void* (*entry) (void*), void* userPtr)
{
auto thread = std::make_unique<SLRealtimeThread>();

View file

@ -1287,12 +1287,12 @@ private:
}
//==============================================================================
AudioIODeviceType* createAudioIODeviceType_ALSA_Soundcards()
static inline AudioIODeviceType* createAudioIODeviceType_ALSA_Soundcards()
{
return new ALSAAudioIODeviceType (true, "ALSA HW");
}
AudioIODeviceType* createAudioIODeviceType_ALSA_PCMDevices()
static inline AudioIODeviceType* createAudioIODeviceType_ALSA_PCMDevices()
{
return new ALSAAudioIODeviceType (false, "ALSA");
}

View file

@ -130,7 +130,7 @@ namespace juce
//==============================================================================
namespace DSoundLogging
{
String getErrorMessage (HRESULT hr)
static String getErrorMessage (HRESULT hr)
{
const char* result = nullptr;

View file

@ -33,7 +33,7 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wlanguage-extension-token")
namespace WasapiClasses
{
void logFailure (HRESULT hr)
static void logFailure (HRESULT hr)
{
ignoreUnused (hr);
jassert (hr != (HRESULT) 0x800401f0); // If you hit this, it means you're trying to call from
@ -89,7 +89,7 @@ void logFailure (HRESULT hr)
#undef check
bool check (HRESULT hr)
static bool check (HRESULT hr)
{
logFailure (hr);
return SUCCEEDED (hr);
@ -361,7 +361,7 @@ namespace juce
namespace WasapiClasses
{
String getDeviceID (IMMDevice* device)
static String getDeviceID (IMMDevice* device)
{
String s;
WCHAR* deviceId = nullptr;