Unguarded-availability warnings when deployment target = 10.9

I’m getting these warnings when building with latest JUCE master (6.1.6) and deployment target = 10.9.

image

The same warnings are spit out when building with the latest commits on develop and juce7 branches.

Detailed location of those warnings (on master at tag 6.1.6):

juce_audio_utils/native/juce_mac_BluetoothMidiDevicePairingDialogue.mm
juce_audio_utils/native/juce_mac_BluetoothMidiDevicePairingDialogue.mm:56:12: 'CABTLEMIDIWindowController' is only available on macOS 10.11 or newer
juce_audio_utils/native/juce_mac_BluetoothMidiDevicePairingDialogue.mm:42:17: 'CABTLEMIDIWindowController' is only available on macOS 10.11 or newer
juce_audio_utils/native/juce_mac_BluetoothMidiDevicePairingDialogue.mm:58:24: 'CABTLEMIDIWindowController' is only available on macOS 10.11 or newer
juce_audio_utils/native/juce_mac_BluetoothMidiDevicePairingDialogue.mm:66:58: 'CABTLEMIDIWindowController' is only available on macOS 10.11 or newer
juce_gui_basics/native/accessibility/juce_mac_Accessibility.mm
juce_gui_basics/native/accessibility/juce_mac_Accessibility.mm:26:56: 'NSAccessibilityElement' is only available on macOS 10.10 or newer
juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm
juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm:1794:17: 'setMinFullScreenContentSize:' is only available on macOS 10.11 or newer
juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm:1795:17: 'setMaxFullScreenContentSize:' is only available on macOS 10.11 or newer
juce_gui_basics/native/juce_mac_FileChooser.mm
juce_gui_basics/native/juce_mac_FileChooser.mm:118:28: 'setAccessoryViewDisclosed:' is only available on macOS 10.11 or newer

Could you please add the proper @available guards around those?

Thank you for reporting.

2 Likes