No previous prototype for function


#1

Getting a few warnings for these:

(Note: This is a non-native AAX plug-in so is only using a very small number of JUCE modules)

juce_graphics/native/juce_mac_IconHelpers.cpp:30:7: No previous prototype for function ‘geticonfcromicnsfile’

juce_graphics/fonts/juce_Font.cpp:329:29: No previous prototype for function ‘getFontPlaceholderNames’

juce_graphics/native/juce_mac_IconHelpers.cpp:108:16: No previous prototype for function ‘getIconFromApplication’

juce_core/text/juce_String.cpp:867:32: No previous prototype for function ‘operator<<’

juce_gui_basics/misc/juce_JUCESplashScreen.cpp:62:18: No previous prototype for function ‘getLogoArea’

juce_gui_basics/native/juce_mac_Windowing.mm:167:9: No previous prototype for function ‘getNSViewForDragEvent’

juce_gui_basics/native/juce_mac_Windowing.mm:561:7: No previous prototype for function ‘createSnapshotOfNativeWindow’

juce_gui_basics/native/juce_mac_MainMenu.mm:790:9: No previous prototype for function ‘createNSMenu’

Cheers,

Rail


#2

What compiler or flags are you using to get these? This is code that’s been there for years, but we’ve never seen them.


#3

Xcode 8.2.1 on MacOS 10.11.6 (LLVM 8.0)

I’m only using these modules in the project:

juce_core
juce_data_structures
juce_events
juce_graphics
juce_gui_basics
juce_gui_extra
juce_opengl

From the xcconfig:

WARNING_CFLAGS=-Wno-return-type
GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS=NO
GCC_WARN_UNUSED_FUNCTION=YES
GCC_WARN_NON_VIRTUAL_DESTRUCTOR=YES
GCC_REUSE_STRINGS=YES
GCC_INLINES_ARE_PRIVATE_EXTERN=YES
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS=NO
GCC_WARN_UNUSED_VARIABLE=NO
GCC_FAST_OBJC_DISPATCH=YES
GCC_WARN_CHECK_SWITCH_STATEMENTS=YES
GCC_WARN_ABOUT_RETURN_TYPE=YES
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS=NO
GCC_WARN_ABOUT_MISSING_PROTOTYPES=YES
GCC_WARN_PEDANTIC=NO
GCC_WARN_SIGN_COMPARE=YES
GCC_WARN_UNKNOWN_PRAGMAS=YES
SEPARATE_STRIP=NO
GCC_USE_GCC3_PFE_SUPPORT=YES
ZERO_LINK=NO

Rail


#4

Thanks, will push a fix to develop shortly.


#5

Thanks Jules!

Rail