Compiler warning in VS (File::nonexistent)

VS2015 is giving this warning building using the tip…

1>.....\modules\juce_core\files/juce_File.cpp(66): warning C4592: 'nonexistent': symbol will be dynamically initialized (implementation limitation) (compiling source file ..\..\JuceLibraryCode\include_juce_core.cpp)


File::nonexistent was deprecated quite a while ago, and is only kept around for backwards compatibility - you can remove it altogether if you set JUCE_ALLOW_STATIC_NULL_VARIABLES=0

(I think it’s probably time we changed this so that they’re disabled by default)

1 Like