mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Deprecations: Add ignore deprecation warning macros
This commit is contained in:
parent
6b08ced201
commit
5e803ded5f
42 changed files with 114 additions and 148 deletions
|
|
@ -35,8 +35,7 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
void AudioDataConverters::convertFloatToInt16LE (const float* source, void* dest, int numSamples, int destBytesPerSample)
|
void AudioDataConverters::convertFloatToInt16LE (const float* source, void* dest, int numSamples, int destBytesPerSample)
|
||||||
{
|
{
|
||||||
|
|
@ -641,7 +640,6 @@ static AudioConversionTests audioConversionUnitTests;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -221,8 +221,7 @@ MidiBufferIterator MidiBuffer::findNextSamplePosition (int samplePosition) const
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
MidiBuffer::Iterator::Iterator (const MidiBuffer& b) noexcept
|
MidiBuffer::Iterator::Iterator (const MidiBuffer& b) noexcept
|
||||||
: buffer (b), iterator (b.data.begin())
|
: buffer (b), iterator (b.data.begin())
|
||||||
|
|
@ -257,8 +256,7 @@ bool MidiBuffer::Iterator::getNextEvent (MidiMessage& result, int& samplePositio
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
|
||||||
|
|
@ -1231,8 +1231,7 @@ struct MidiMessageTest final : public UnitTest
|
||||||
|
|
||||||
size_t index = 0;
|
size_t index = 0;
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
for (const auto& input : inputs)
|
for (const auto& input : inputs)
|
||||||
{
|
{
|
||||||
|
|
@ -1258,8 +1257,7 @@ struct MidiMessageTest final : public UnitTest
|
||||||
++index;
|
++index;
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
}
|
}
|
||||||
|
|
||||||
beginTest ("ReadVariableLengthVal should return 0 if input is truncated");
|
beginTest ("ReadVariableLengthVal should return 0 if input is truncated");
|
||||||
|
|
|
||||||
|
|
@ -818,7 +818,7 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_MODULE_AVAILABLE_juce_graphics
|
#if JUCE_MODULE_AVAILABLE_juce_graphics
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
Image getIcon (int size)
|
Image getIcon (int size)
|
||||||
{
|
{
|
||||||
#if TARGET_OS_MACCATALYST
|
#if TARGET_OS_MACCATALYST
|
||||||
|
|
@ -834,7 +834,7 @@ struct iOSAudioIODevice::Pimpl final : public AsyncUpdater
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void switchApplication()
|
void switchApplication()
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,10 @@ namespace juce
|
||||||
namespace OggVorbisNamespace
|
namespace OggVorbisNamespace
|
||||||
{
|
{
|
||||||
#if JUCE_INCLUDE_OGGVORBIS_CODE || ! defined (JUCE_INCLUDE_OGGVORBIS_CODE)
|
#if JUCE_INCLUDE_OGGVORBIS_CODE || ! defined (JUCE_INCLUDE_OGGVORBIS_CODE)
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4267 4127 4244 4996 4100 4701 4702 4013 4133 4206 4305 4189 4706 4995 4365 4456 4457 4459 6297 6011 6001 6308 6255 6386 6385 6246 6387 6263 6262 28182)
|
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4267 4127 4244 4100 4701 4702 4013 4133 4206 4305 4189 4706 4995 4365 4456 4457 4459 6297 6011 6001 6308 6255 6386 6385 6246 6387 6263 6262 28182)
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wcast-align",
|
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wcast-align",
|
||||||
"-Wconversion",
|
"-Wconversion",
|
||||||
"-Wdeprecated-declarations",
|
|
||||||
"-Wdeprecated-register",
|
"-Wdeprecated-register",
|
||||||
"-Wfloat-conversion",
|
"-Wfloat-conversion",
|
||||||
"-Wfloat-equal",
|
"-Wfloat-equal",
|
||||||
|
|
@ -61,6 +60,9 @@ namespace OggVorbisNamespace
|
||||||
"-Wswitch-default",
|
"-Wswitch-default",
|
||||||
"-Wswitch-enum",
|
"-Wswitch-enum",
|
||||||
"-Wzero-as-null-pointer-constant")
|
"-Wzero-as-null-pointer-constant")
|
||||||
|
|
||||||
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
JUCE_BEGIN_NO_SANITIZE ("undefined")
|
JUCE_BEGIN_NO_SANITIZE ("undefined")
|
||||||
|
|
||||||
#include "oggvorbis/vorbisenc.h"
|
#include "oggvorbis/vorbisenc.h"
|
||||||
|
|
@ -92,6 +94,7 @@ namespace OggVorbisNamespace
|
||||||
#include "oggvorbis/libvorbis-1.3.7/lib/window.c"
|
#include "oggvorbis/libvorbis-1.3.7/lib/window.c"
|
||||||
|
|
||||||
JUCE_END_NO_SANITIZE
|
JUCE_END_NO_SANITIZE
|
||||||
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wc99-extensions",
|
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wc99-extensions",
|
||||||
"-Wcast-align",
|
"-Wcast-align",
|
||||||
"-Wconversion",
|
"-Wconversion",
|
||||||
"-Wdeprecated-declarations",
|
|
||||||
"-Wextra-semi",
|
"-Wextra-semi",
|
||||||
"-Wfloat-conversion",
|
"-Wfloat-conversion",
|
||||||
"-Wfloat-equal",
|
"-Wfloat-equal",
|
||||||
|
|
@ -56,7 +55,8 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wc99-extensions",
|
||||||
"-Wswitch-enum",
|
"-Wswitch-enum",
|
||||||
"-Wunused-parameter",
|
"-Wunused-parameter",
|
||||||
"-Wzero-as-null-pointer-constant")
|
"-Wzero-as-null-pointer-constant")
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4100 4200 4244 4267 4389 4702 4706 4800 4996 6308 28182 28183 6385 6386 6387 6011 6282 6323 6330 6001 6031)
|
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4100 4200 4244 4267 4389 4702 4706 4800 6308 28182 28183 6385 6386 6387 6011 6282 6323 6330 6001 6031)
|
||||||
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
|
|
@ -113,5 +113,6 @@ extern "C"
|
||||||
|
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
|
||||||
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
class LegacyAudioParameter final : public HostedAudioProcessorParameter
|
class LegacyAudioParameter final : public HostedAudioProcessorParameter
|
||||||
{
|
{
|
||||||
|
|
@ -219,7 +218,6 @@ private:
|
||||||
bool legacyParamIDs = false, usingManagedParameters = false;
|
bool legacyParamIDs = false, usingManagedParameters = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -1932,7 +1932,7 @@ private:
|
||||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VST3PluginWindow)
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VST3PluginWindow)
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996) // warning about overriding deprecated methods
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
static bool hasARAExtension (IPluginFactory* pluginFactory, const String& pluginClassName)
|
static bool hasARAExtension (IPluginFactory* pluginFactory, const String& pluginClassName)
|
||||||
|
|
@ -3891,7 +3891,7 @@ private:
|
||||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VST3PluginInstance)
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (VST3PluginInstance)
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
tresult VST3HostContext::beginEdit (Vst::ParamID paramID)
|
tresult VST3HostContext::beginEdit (Vst::ParamID paramID)
|
||||||
|
|
|
||||||
|
|
@ -63,11 +63,11 @@ struct AEffect;
|
||||||
|
|
||||||
#include "juce_VSTCommon.h"
|
#include "juce_VSTCommon.h"
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||||
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4355)
|
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4355)
|
||||||
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#include "juce_VSTMidiEventList.h"
|
#include "juce_VSTMidiEventList.h"
|
||||||
|
|
||||||
|
|
@ -828,8 +828,6 @@ private:
|
||||||
static const int defaultVSTSampleRateValue = 44100;
|
static const int defaultVSTSampleRateValue = 44100;
|
||||||
static const int defaultVSTBlockSizeValue = 512;
|
static const int defaultVSTBlockSizeValue = 512;
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
class TempChannelPointers
|
class TempChannelPointers
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -3446,8 +3444,6 @@ private:
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
AudioProcessorEditor* VSTPluginInstance::createEditor()
|
AudioProcessorEditor* VSTPluginInstance::createEditor()
|
||||||
{
|
{
|
||||||
|
|
@ -3762,7 +3758,7 @@ void VSTPluginFormat::aboutToScanVSTShellPlugin (const PluginDescription&) {}
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -1271,8 +1271,7 @@ VST3ClientExtensions* AudioProcessor::getVST3ClientExtensions()
|
||||||
}
|
}
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
void AudioProcessor::setParameterNotifyingHost (int parameterIndex, float newValue)
|
void AudioProcessor::setParameterNotifyingHost (int parameterIndex, float newValue)
|
||||||
{
|
{
|
||||||
|
|
@ -1510,8 +1509,7 @@ AudioProcessorParameter* AudioProcessor::getParamChecked (int index) const
|
||||||
bool AudioProcessor::canAddBus ([[maybe_unused]] bool isInput) const { return false; }
|
bool AudioProcessor::canAddBus ([[maybe_unused]] bool isInput) const { return false; }
|
||||||
bool AudioProcessor::canRemoveBus ([[maybe_unused]] bool isInput) const { return false; }
|
bool AudioProcessor::canRemoveBus ([[maybe_unused]] bool isInput) const { return false; }
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void AudioProcessorListener::audioProcessorParameterChangeGestureBegin (AudioProcessor*, int) {}
|
void AudioProcessorListener::audioProcessorParameterChangeGestureBegin (AudioProcessor*, int) {}
|
||||||
|
|
|
||||||
|
|
@ -896,13 +896,11 @@ var::NativeFunctionArgs::NativeFunctionArgs (const var& t, const var* args, int
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
const var var::null;
|
const var var::null;
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,7 @@ bool DirectoryIterator::next()
|
||||||
return next (nullptr, nullptr, nullptr, nullptr, nullptr, nullptr);
|
return next (nullptr, nullptr, nullptr, nullptr, nullptr, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
bool DirectoryIterator::next (bool* isDirResult, bool* isHiddenResult, int64* fileSize,
|
bool DirectoryIterator::next (bool* isDirResult, bool* isHiddenResult, int64* fileSize,
|
||||||
Time* modTime, Time* creationTime, bool* isReadOnly)
|
Time* modTime, Time* creationTime, bool* isReadOnly)
|
||||||
|
|
@ -144,8 +143,7 @@ bool DirectoryIterator::next (bool* isDirResult, bool* isHiddenResult, int64* fi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
const File& DirectoryIterator::getFile() const
|
const File& DirectoryIterator::getFile() const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1029,13 +1029,11 @@ File File::getLinkedTarget() const
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
const File File::nonexistent{};
|
const File File::nonexistent{};
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,7 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
float DirectoryEntry::getEstimatedProgress() const
|
float DirectoryEntry::getEstimatedProgress() const
|
||||||
{
|
{
|
||||||
|
|
@ -85,7 +84,6 @@ void RangedDirectoryIterator::increment()
|
||||||
iterator = nullptr;
|
iterator = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@ namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Describes the attributes of a file or folder.
|
Describes the attributes of a file or folder.
|
||||||
|
|
@ -196,7 +195,6 @@ inline RangedDirectoryIterator begin (const RangedDirectoryIterator& it) { retur
|
||||||
inline RangedDirectoryIterator end (const RangedDirectoryIterator&) { return {}; }
|
inline RangedDirectoryIterator end (const RangedDirectoryIterator&) { return {}; }
|
||||||
|
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,7 @@ class [[deprecated]] ScopedPointer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
inline ScopedPointer() {}
|
inline ScopedPointer() {}
|
||||||
|
|
||||||
|
|
@ -154,13 +153,11 @@ private:
|
||||||
ScopedPointer& operator= (const ScopedPointer&) = delete;
|
ScopedPointer& operator= (const ScopedPointer&) = delete;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
template <typename ObjectType1, typename ObjectType2>
|
template <typename ObjectType1, typename ObjectType2>
|
||||||
bool operator== (ObjectType1* pointer1, const ScopedPointer<ObjectType2>& pointer2) noexcept
|
bool operator== (ObjectType1* pointer1, const ScopedPointer<ObjectType2>& pointer2) noexcept
|
||||||
|
|
@ -228,8 +225,7 @@ template <typename Type>
|
||||||
void deleteAndZero (ScopedPointer<Type>&) { static_assert (sizeof (Type) == 12345,
|
void deleteAndZero (ScopedPointer<Type>&) { static_assert (sizeof (Type) == 12345,
|
||||||
"Attempt to call deleteAndZero() on a ScopedPointer"); }
|
"Attempt to call deleteAndZero() on a ScopedPointer"); }
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -231,12 +231,10 @@ struct AndroidDocumentDetail
|
||||||
|
|
||||||
struct DirectoryIteratorEngine
|
struct DirectoryIteratorEngine
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
DirectoryIteratorEngine (const File& dir, bool recursive)
|
DirectoryIteratorEngine (const File& dir, bool recursive)
|
||||||
: iterator (dir, recursive, "*", File::findFilesAndDirectories) {}
|
: iterator (dir, recursive, "*", File::findFilesAndDirectories) {}
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
|
|
||||||
auto read() const { return AndroidDocument::fromFile (iterator.getFile()); }
|
auto read() const { return AndroidDocument::fromFile (iterator.getFile()); }
|
||||||
bool increment() { return iterator.next(); }
|
bool increment() { return iterator.next(); }
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ bool JUCE_CALLTYPE Process::openDocument (const String& fileName, [[maybe_unused
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
NSMutableDictionary* dict = [[NSMutableDictionary new] autorelease];
|
NSMutableDictionary* dict = [[NSMutableDictionary new] autorelease];
|
||||||
|
|
||||||
|
|
@ -443,7 +443,7 @@ bool JUCE_CALLTYPE Process::openDocument (const String& fileName, [[maybe_unused
|
||||||
configuration: dict
|
configuration: dict
|
||||||
error: nil];
|
error: nil];
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file.exists())
|
if (file.exists())
|
||||||
|
|
|
||||||
|
|
@ -253,12 +253,12 @@ namespace WindowsFileHelpers
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
const juce_wchar File::separator = '\\';
|
const juce_wchar File::separator = '\\';
|
||||||
const StringRef File::separatorString ("\\");
|
const StringRef File::separatorString ("\\");
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -113,12 +113,12 @@ static MaxNumFileHandlesInitialiser maxNumFileHandlesInitialiser;
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
const juce_wchar File::separator = '/';
|
const juce_wchar File::separator = '/';
|
||||||
const StringRef File::separatorString ("/");
|
const StringRef File::separatorString ("/");
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -238,6 +238,14 @@
|
||||||
#define JUCE_SANITIZER_ATTRIBUTE_MINIMUM_CLANG_VERSION 9
|
#define JUCE_SANITIZER_ATTRIBUTE_MINIMUM_CLANG_VERSION 9
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS \
|
||||||
|
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations") \
|
||||||
|
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
||||||
|
|
||||||
|
#define JUCE_END_IGNORE_DEPRECATION_WARNINGS \
|
||||||
|
JUCE_END_IGNORE_WARNINGS_MSVC \
|
||||||
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||||
|
|
||||||
/** Disable sanitizers for a range of functions.
|
/** Disable sanitizers for a range of functions.
|
||||||
|
|
||||||
This functionality doesn't seem to exist on GCC yet, so at the moment this only works for clang.
|
This functionality doesn't seem to exist on GCC yet, so at the moment this only works for clang.
|
||||||
|
|
|
||||||
|
|
@ -1860,7 +1860,7 @@ String String::formattedRaw (const char* pf, ...)
|
||||||
va_start (args, pf);
|
va_start (args, pf);
|
||||||
|
|
||||||
#if JUCE_WINDOWS
|
#if JUCE_WINDOWS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if JUCE_ANDROID
|
#if JUCE_ANDROID
|
||||||
|
|
@ -1881,7 +1881,7 @@ String String::formattedRaw (const char* pf, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if JUCE_WINDOWS
|
#if JUCE_WINDOWS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
va_end (args);
|
va_end (args);
|
||||||
|
|
||||||
|
|
@ -2342,13 +2342,11 @@ static String serialiseDouble (double input, int maxDecimalPlaces = 0)
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
const String String::empty;
|
const String String::empty;
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1111,13 +1111,11 @@ void ValueTree::Listener::valueTreeRedirected (ValueTree&)
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
const ValueTree ValueTree::invalid;
|
const ValueTree ValueTree::invalid;
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -149,11 +149,9 @@ void ChildProcessCoordinator::handleConnectionLost() {}
|
||||||
|
|
||||||
void ChildProcessCoordinator::handleMessageFromWorker (const MemoryBlock& mb)
|
void ChildProcessCoordinator::handleMessageFromWorker (const MemoryBlock& mb)
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
handleMessageFromSlave (mb);
|
handleMessageFromSlave (mb);
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChildProcessCoordinator::sendMessageToWorker (const MemoryBlock& mb)
|
bool ChildProcessCoordinator::sendMessageToWorker (const MemoryBlock& mb)
|
||||||
|
|
@ -276,11 +274,9 @@ void ChildProcessWorker::handleConnectionLost() {}
|
||||||
|
|
||||||
void ChildProcessWorker::handleMessageFromCoordinator (const MemoryBlock& mb)
|
void ChildProcessWorker::handleMessageFromCoordinator (const MemoryBlock& mb)
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
handleMessageFromMaster (mb);
|
handleMessageFromMaster (mb);
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ChildProcessWorker::sendMessageToCoordinator (const MemoryBlock& mb)
|
bool ChildProcessWorker::sendMessageToCoordinator (const MemoryBlock& mb)
|
||||||
|
|
|
||||||
|
|
@ -142,11 +142,11 @@ struct AppDelegateClass final : public ObjCClass<NSObject>
|
||||||
{
|
{
|
||||||
if (notification.userInfo != nil)
|
if (notification.userInfo != nil)
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
// NSUserNotification is deprecated from macOS 11, but there doesn't seem to be a
|
// NSUserNotification is deprecated from macOS 11, but there doesn't seem to be a
|
||||||
// replacement for NSApplicationLaunchUserNotificationKey returning a non-deprecated type
|
// replacement for NSApplicationLaunchUserNotificationKey returning a non-deprecated type
|
||||||
NSUserNotification* userNotification = notification.userInfo[NSApplicationLaunchUserNotificationKey];
|
NSUserNotification* userNotification = notification.userInfo[NSApplicationLaunchUserNotificationKey];
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wnullable-to-nonnull-conversion")
|
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wnullable-to-nonnull-conversion")
|
||||||
if (userNotification != nil && userNotification.userInfo != nil)
|
if (userNotification != nil && userNotification.userInfo != nil)
|
||||||
|
|
|
||||||
|
|
@ -754,11 +754,9 @@ float Font::getDescentInPoints() const { return getDescent() * getHeightToP
|
||||||
|
|
||||||
int Font::getStringWidth (const String& text) const
|
int Font::getStringWidth (const String& text) const
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
|
||||||
return (int) std::ceil (getStringWidthFloat (text));
|
return (int) std::ceil (getStringWidthFloat (text));
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float Font::getStringWidthFloat (const String& text) const
|
float Font::getStringWidthFloat (const String& text) const
|
||||||
|
|
@ -941,11 +939,9 @@ public:
|
||||||
|
|
||||||
beginTest ("Old constructor from Typeface");
|
beginTest ("Old constructor from Typeface");
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
Font f { face };
|
Font f { face };
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
|
||||||
|
|
||||||
expect (f.getTypefaceName() == face->getName());
|
expect (f.getTypefaceName() == face->getName());
|
||||||
expect (f.getTypefaceStyle() == face->getStyle());
|
expect (f.getTypefaceStyle() == face->getStyle());
|
||||||
|
|
|
||||||
|
|
@ -841,13 +841,11 @@ void ImageEffects::applySingleChannelBoxBlurEffect (int radius, const Image& inp
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
#if JUCE_ALLOW_STATIC_NULL_VARIABLES
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
const Image Image::null;
|
const Image Image::null;
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,9 @@
|
||||||
|
|
||||||
#include <juce_core/system/juce_CompilerWarnings.h>
|
#include <juce_core/system/juce_CompilerWarnings.h>
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4100 4127 4189 4244 4245 4265 4267 4309 4310 4312 4456 4457 4458 4459 4701 4702 4706 4996 6001 6011 6239 6244 6246 6262 6297 6313 6319 6326 6336 6385 6386 28251)
|
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4100 4127 4189 4244 4245 4265 4267 4309 4310 4312 4456 4457 4458 4459 4701 4702 4706 6001 6011 6239 6244 6246 6262 6297 6313 6319 6326 6336 6385 6386 28251)
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations",
|
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wcast-function-type",
|
||||||
"-Wcast-function-type",
|
|
||||||
"-Wsign-conversion",
|
"-Wsign-conversion",
|
||||||
"-Wzero-as-null-pointer-constant",
|
"-Wzero-as-null-pointer-constant",
|
||||||
"-Wformat-pedantic",
|
"-Wformat-pedantic",
|
||||||
|
|
@ -56,6 +55,8 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations",
|
||||||
"-Woverflow",
|
"-Woverflow",
|
||||||
"-Wimplicit-fallthrough")
|
"-Wimplicit-fallthrough")
|
||||||
|
|
||||||
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#define HAVE_ATEXIT 1
|
#define HAVE_ATEXIT 1
|
||||||
|
|
||||||
#if JUCE_LINUX || JUCE_BSD
|
#if JUCE_LINUX || JUCE_BSD
|
||||||
|
|
@ -95,5 +96,6 @@ JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations",
|
||||||
#undef HAVE_FREETYPE
|
#undef HAVE_FREETYPE
|
||||||
#undef HAVE_CORETEXT
|
#undef HAVE_CORETEXT
|
||||||
|
|
||||||
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
JUCE_END_IGNORE_WARNINGS_MSVC
|
||||||
|
|
|
||||||
|
|
@ -103,9 +103,9 @@ public:
|
||||||
[panel setTitle: nsTitle];
|
[panel setTitle: nsTitle];
|
||||||
[panel setReleasedWhenClosed: YES];
|
[panel setReleasedWhenClosed: YES];
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
[panel setAllowedFileTypes: createAllowedTypesArray (filters)];
|
[panel setAllowedFileTypes: createAllowedTypesArray (filters)];
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
if (! isSave)
|
if (! isSave)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1460,9 +1460,9 @@ public:
|
||||||
if (@available (macOS 10.13, *))
|
if (@available (macOS 10.13, *))
|
||||||
return NSPasteboardTypeFileURL;
|
return NSPasteboardTypeFileURL;
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
return (NSString*) kUTTypeFileURL;
|
return (NSString*) kUTTypeFileURL;
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
}();
|
}();
|
||||||
|
|
||||||
return [NSArray arrayWithObjects: type, (NSString*) kPasteboardTypeFileURLPromise, NSPasteboardTypeString, nil];
|
return [NSArray arrayWithObjects: type, (NSString*) kPasteboardTypeFileURLPromise, NSPasteboardTypeString, nil];
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ private:
|
||||||
// NSScreen.displayLink(target:selector:) all of which were only introduced in macOS 14+ however,
|
// NSScreen.displayLink(target:selector:) all of which were only introduced in macOS 14+ however,
|
||||||
// it's not clear how these methods can be used to replace all use cases
|
// it's not clear how these methods can be used to replace all use cases
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
class ScopedDisplayLink
|
class ScopedDisplayLink
|
||||||
{
|
{
|
||||||
|
|
@ -188,7 +188,7 @@ private:
|
||||||
JUCE_DECLARE_NON_MOVEABLE (ScopedDisplayLink)
|
JUCE_DECLARE_NON_MOVEABLE (ScopedDisplayLink)
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -115,9 +115,9 @@ static UIInterfaceOrientation getWindowOrientation()
|
||||||
return [(UIWindowScene*) scene interfaceOrientation];
|
return [(UIWindowScene*) scene interfaceOrientation];
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
return [sharedApplication statusBarOrientation];
|
return [sharedApplication statusBarOrientation];
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Orientations
|
struct Orientations
|
||||||
|
|
|
||||||
|
|
@ -603,12 +603,12 @@ static Image createNSWindowSnapshot (NSWindow* nsWindow)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
return createImageFromCGImage ((CGImageRef) CFAutorelease (CGWindowListCreateImage (CGRectNull,
|
return createImageFromCGImage ((CGImageRef) CFAutorelease (CGWindowListCreateImage (CGRectNull,
|
||||||
kCGWindowListOptionIncludingWindow,
|
kCGWindowListOptionIncludingWindow,
|
||||||
(CGWindowID) [nsWindow windowNumber],
|
(CGWindowID) [nsWindow windowNumber],
|
||||||
kCGWindowImageBoundsIgnoreFraming)));
|
kCGWindowImageBoundsIgnoreFraming)));
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1697,11 +1697,9 @@ void CodeEditorComponent::setFont (const Font& newFont)
|
||||||
{
|
{
|
||||||
font = newFont;
|
font = newFont;
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
|
||||||
charWidth = font.getStringWidthFloat ("0");
|
charWidth = font.getStringWidthFloat ("0");
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
lineHeight = roundToInt (font.getHeight());
|
lineHeight = roundToInt (font.getHeight());
|
||||||
resized();
|
resized();
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,9 @@ namespace
|
||||||
return kIOMainPortDefault;
|
return kIOMainPortDefault;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
return kIOMasterPortDefault;
|
return kIOMasterPortDefault;
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
}();
|
}();
|
||||||
|
|
||||||
if (IOServiceGetMatchingServices (defaultPort, dict, &iter) == kIOReturnSuccess
|
if (IOServiceGetMatchingServices (defaultPort, dict, &iter) == kIOReturnSuccess
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
namespace PushNotificationsDelegateDetailsOsx
|
namespace PushNotificationsDelegateDetailsOsx
|
||||||
{
|
{
|
||||||
|
|
@ -534,6 +534,6 @@ private:
|
||||||
PushNotifications::Settings settings;
|
PushNotifications::Settings settings;
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
extern NSMenu* createNSMenu (const PopupMenu&, const String& name, int topLevelMenuId,
|
extern NSMenu* createNSMenu (const PopupMenu&, const String& name, int topLevelMenuId,
|
||||||
int topLevelIndex, bool addDelegate);
|
int topLevelIndex, bool addDelegate);
|
||||||
|
|
@ -446,6 +446,6 @@ void SystemTrayIconComponent::showDropdownMenu (const PopupMenu& menu)
|
||||||
pimpl->statusItemHolder->showMenu (menu);
|
pimpl->statusItemHolder->showMenu (menu);
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -1137,11 +1137,11 @@ private:
|
||||||
// Using the non-deprecated webkit_javascript_result_get_js_value() functions seems easier
|
// Using the non-deprecated webkit_javascript_result_get_js_value() functions seems easier
|
||||||
// but returned values fail the JS_IS_VALUE() internal assertion. The example code from the
|
// but returned values fail the JS_IS_VALUE() internal assertion. The example code from the
|
||||||
// documentation doesn't seem to work either.
|
// documentation doesn't seem to work either.
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
WebKitJavascriptResultUniquePtr jsResult { wk.juce_webkit_web_view_run_javascript_finish (owner->webview,
|
WebKitJavascriptResultUniquePtr jsResult { wk.juce_webkit_web_view_run_javascript_finish (owner->webview,
|
||||||
result,
|
result,
|
||||||
&error) };
|
&error) };
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
if (jsResult == nullptr)
|
if (jsResult == nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -197,9 +197,9 @@ struct WebViewKeyEquivalentResponder final : public ObjCClass<WebViewClass>
|
||||||
if (@available (macOS 10.12, *))
|
if (@available (macOS 10.12, *))
|
||||||
return (modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask) == NSEventModifierFlagCommand;
|
return (modifierFlags & NSEventModifierFlagDeviceIndependentFlagsMask) == NSEventModifierFlagCommand;
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
return (modifierFlags & NSDeviceIndependentModifierFlagsMask) == NSCommandKeyMask;
|
return (modifierFlags & NSDeviceIndependentModifierFlagsMask) == NSCommandKeyMask;
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
}();
|
}();
|
||||||
|
|
||||||
if (isCommandDown)
|
if (isCommandDown)
|
||||||
|
|
@ -270,7 +270,7 @@ struct WebViewKeyEquivalentResponder final : public ObjCClass<WebViewClass>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
struct DownloadClickDetectorClass final : public ObjCClass<NSObject>
|
struct DownloadClickDetectorClass final : public ObjCClass<NSObject>
|
||||||
{
|
{
|
||||||
DownloadClickDetectorClass() : ObjCClass ("JUCEWebClickDetector_")
|
DownloadClickDetectorClass() : ObjCClass ("JUCEWebClickDetector_")
|
||||||
|
|
@ -372,7 +372,7 @@ private:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Connects the delegate to the rest of the implementation without making WebViewDelegateClass
|
// Connects the delegate to the rest of the implementation without making WebViewDelegateClass
|
||||||
|
|
@ -652,7 +652,7 @@ window.__JUCE__ = {
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
class WebBrowserComponent::Impl::Platform::WebViewImpl : public WebBrowserComponent::Impl::PlatformInterface,
|
class WebBrowserComponent::Impl::Platform::WebViewImpl : public WebBrowserComponent::Impl::PlatformInterface,
|
||||||
#if JUCE_MAC
|
#if JUCE_MAC
|
||||||
public NSViewComponent
|
public NSViewComponent
|
||||||
|
|
@ -783,7 +783,7 @@ private:
|
||||||
ObjCObjectHandle<WebView*> webView;
|
ObjCObjectHandle<WebView*> webView;
|
||||||
ObjCObjectHandle<id> clickListener;
|
ObjCObjectHandle<id> clickListener;
|
||||||
};
|
};
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class WebBrowserComponent::Impl::Platform::WKWebViewImpl : public WebBrowserComponent::Impl::PlatformInterface,
|
class WebBrowserComponent::Impl::Platform::WKWebViewImpl : public WebBrowserComponent::Impl::PlatformInterface,
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
namespace juce
|
namespace juce
|
||||||
{
|
{
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
class OpenGLContext::NativeContext
|
class OpenGLContext::NativeContext
|
||||||
{
|
{
|
||||||
|
|
@ -326,6 +326,6 @@ bool OpenGLHelpers::isContextActive()
|
||||||
return CGLGetCurrentContext() != CGLContextObj();
|
return CGLGetCurrentContext() != CGLContextObj();
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
} // namespace juce
|
} // namespace juce
|
||||||
|
|
|
||||||
|
|
@ -328,8 +328,7 @@ String OnlineUnlockStatus::MachineIDUtilities::getUniqueMachineID()
|
||||||
return getEncodedIDString (SystemStats::getUniqueDeviceID());
|
return getEncodedIDString (SystemStats::getUniqueDeviceID());
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_MSVC (4996)
|
|
||||||
|
|
||||||
StringArray OnlineUnlockStatus::MachineIDUtilities::getLocalMachineIDs()
|
StringArray OnlineUnlockStatus::MachineIDUtilities::getLocalMachineIDs()
|
||||||
{
|
{
|
||||||
|
|
@ -350,8 +349,7 @@ StringArray OnlineUnlockStatus::getLocalMachineIDs()
|
||||||
return MachineIDUtilities::getLocalMachineIDs();
|
return MachineIDUtilities::getLocalMachineIDs();
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
JUCE_END_IGNORE_WARNINGS_MSVC
|
|
||||||
|
|
||||||
void OnlineUnlockStatus::userCancelled()
|
void OnlineUnlockStatus::userCancelled()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -148,9 +148,9 @@ struct CameraDevice::Pimpl
|
||||||
{
|
{
|
||||||
if (@available (macOS 10.15, *))
|
if (@available (macOS 10.15, *))
|
||||||
{
|
{
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
const auto deviceType = AVCaptureDeviceTypeExternalUnknown;
|
const auto deviceType = AVCaptureDeviceTypeExternalUnknown;
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
auto* discovery = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes: @[AVCaptureDeviceTypeBuiltInWideAngleCamera, deviceType]
|
auto* discovery = [AVCaptureDeviceDiscoverySession discoverySessionWithDeviceTypes: @[AVCaptureDeviceTypeBuiltInWideAngleCamera, deviceType]
|
||||||
mediaType: AVMediaTypeVideo
|
mediaType: AVMediaTypeVideo
|
||||||
|
|
@ -159,9 +159,9 @@ struct CameraDevice::Pimpl
|
||||||
return [discovery devices];
|
return [discovery devices];
|
||||||
}
|
}
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
return [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
|
return [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
}
|
}
|
||||||
|
|
||||||
static StringArray getAvailableDevices()
|
static StringArray getAvailableDevices()
|
||||||
|
|
@ -331,7 +331,7 @@ private:
|
||||||
NSUniquePtr<NSObject<AVCapturePhotoCaptureDelegate>> delegate;
|
NSUniquePtr<NSObject<AVCapturePhotoCaptureDelegate>> delegate;
|
||||||
};
|
};
|
||||||
|
|
||||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations")
|
JUCE_BEGIN_IGNORE_DEPRECATION_WARNINGS
|
||||||
class PreCatalinaStillImageOutput : public ImageOutputBase
|
class PreCatalinaStillImageOutput : public ImageOutputBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
@ -397,7 +397,7 @@ private:
|
||||||
private:
|
private:
|
||||||
AVCaptureStillImageOutput* imageOutput = nil;
|
AVCaptureStillImageOutput* imageOutput = nil;
|
||||||
};
|
};
|
||||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
JUCE_END_IGNORE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
void addImageCapture()
|
void addImageCapture()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue