SpartanJ / efsw

efsw is a C++ cross-platform file system watcher and notifier.
Other
662 stars 101 forks source link

FSEventStreamScheduleWithRunLoop has been deprecated in MacOS 13 #163

Closed Cogitri closed 1 year ago

Cogitri commented 1 year ago

Hello,

after updating our AppleClang, we've noticed that efsw uses deprecated functionality on MacOS:

src/efsw/WatcherFSEvents.cpp:67:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
        FSEventStreamScheduleWithRunLoop( FSStream, FWatcher.load()->mRunLoopRef.load(),
        ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here
FSEventStreamScheduleWithRunLoop(
^
1 warning generated.
SpartanJ commented 1 year ago

Thank you for reporting it. I'll make the necessary changes soon.

Cogitri commented 1 year ago

Grand, thanks! :)

SpartanJ commented 1 year ago

This should be fixed since this commit. I'll continue testing a little bit more and tag a new version.