Warnings OSX


#1

I noticed after switching warnings to pedantic that there are some minor fixes required, see below for a patch…

diff --git a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
index 70791f6..3875811 100644
--- a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
+++ b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
@@ -2391,7 +2391,7 @@ char*     AUBase::GetLoggingString () const
        char str1[24];
        char str2[24];
        snprintf (const_cast<AUBase*>(this)->mLogString, logStringSize, "AU (%p): %s %s %s",
-           GetComponentInstance(),
+         (void*)GetComponentInstance(),
                CAStringForOSType(desc.componentType, str, sizeof(str)),
                CAStringForOSType(desc.componentSubType, str1, sizeof(str1)),
                CAStringForOSType(desc.componentManufacturer, str2, sizeof(str2)));
diff --git a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
index 7e37bfb..38879d2 100644
--- a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
+++ b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
@@ -168,7 +168,7 @@ public:
 #if DEBUG
        void                                    Print()
        {
-           printf("ParameterEvent @ %p\n", this);
+         printf("ParameterEvent @ %p\n", (void*)this);
:...skipping...
diff --git a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
index 70791f6..3875811 100644
--- a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
+++ b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
@@ -2391,7 +2391,7 @@ char*     AUBase::GetLoggingString () const
        char str1[24];
        char str2[24];
        snprintf (const_cast<AUBase*>(this)->mLogString, logStringSize, "AU (%p): %s %s %s",
-           GetComponentInstance(),
+         (void*)GetComponentInstance(),
                CAStringForOSType(desc.componentType, str, sizeof(str)),
                CAStringForOSType(desc.componentSubType, str1, sizeof(str1)),
                CAStringForOSType(desc.componentManufacturer, str2, sizeof(str2)));
diff --git a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
index 7e37bfb..38879d2 100644
--- a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
+++ b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
@@ -168,7 +168,7 @@ public:
 #if DEBUG
        void                                    Print()
        {
-           printf("ParameterEvent @ %p\n", this);
+         printf("ParameterEvent @ %p\n", (void*)this);
                printf("        mEventType = %d\n", (int)mEventType);
:...skipping...
diff --git a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
index 70791f6..3875811 100644
--- a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
+++ b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUBase.cpp
@@ -2391,7 +2391,7 @@ char*     AUBase::GetLoggingString () const
        char str1[24];
        char str2[24];
        snprintf (const_cast<AUBase*>(this)->mLogString, logStringSize, "AU (%p): %s %s %s",
-           GetComponentInstance(),
+         (void*)GetComponentInstance(),
                CAStringForOSType(desc.componentType, str, sizeof(str)),
                CAStringForOSType(desc.componentSubType, str1, sizeof(str1)),
                CAStringForOSType(desc.componentManufacturer, str2, sizeof(str2)));
diff --git a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
index 7e37bfb..38879d2 100644
--- a/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
+++ b/modules/juce_audio_plugin_client/AU/CoreAudioUtilityClasses/AUScopeElement.h
@@ -168,7 +168,7 @@ public:
 #if DEBUG
        void                                    Print()
        {
-           printf("ParameterEvent @ %p\n", this);
+         printf("ParameterEvent @ %p\n", (void*)this);
                printf("        mEventType = %d\n", (int)mEventType);
                printf("        mBufferOffset = %d\n", (int)mBufferOffset);
                printf("        mDurationInFrames = %d\n", (int)mDurationInFrames);
diff --git a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm
index 5953f32..e8e5549 100644
--- a/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm
+++ b/modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm
@@ -40,6 +40,7 @@
  #pragma clang diagnostic ignored "-Wsign-conversion"
  #pragma clang diagnostic ignored "-Wconversion"
  #pragma clang diagnostic ignored "-Woverloaded-virtual"
+ #pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
 #endif
 
 #include "../utility/juce_IncludeSystemHeaders.h"
diff --git a/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_2.mm b/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_2.mm
index b5af063..f0c6cad 100644
--- a/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_2.mm
+++ b/modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_2.mm
@@ -30,6 +30,7 @@
  #pragma clang diagnostic ignored "-Wconversion"
  #pragma clang diagnostic ignored "-Wunused-parameter"
  #pragma clang diagnostic ignored "-Wunused"
+ #pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
 #endif
 
 #ifdef _MSC_VER