Warnings on Linux with GCC and ARA

When compiling an ARA plugin with GCC ( 9.4.0), there are a bunch of annoying warnings due to -Wsign-conversion, for instance:

.../ARA_SDK/ARA_Library/Dispatch/ARADispatchBase.h:175:92: warning: conversion to ‘long unsigned int’ from ‘intptr_t’ {aka ‘long int’} may change the sign of the result [-Wsign-conversion]

The problem is in the ARA SDK but the warnings can be ignored in JUCE with this patch: JUCE-bb93972-ARA: remove sign-conversion warnings for GCC like compilers.patch (1.7 KB).

There are also warnings due to -Wunused-variable in release mode (no debug), for example:

JUCE/modules/juce_audio_processors/utilities/ARA/juce_AudioProcessor_ARAExtensions.cpp:130:14: warning: unused variable ‘playbackRenderer’ [-Wunused-variable]
  130 |     if (auto playbackRenderer = getPlaybackRenderer())

Here is the patch in juce_AudioProcessor_ARAExtensions.cpp:
JUCE-2ec3e32-ARA: Fix unused variable warning in release mode.patch (1006 Bytes)