compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura
- From
René Scharfe <l.s.r@web.de>
- Date
- Nov 5, 2022, 17:26 UTC
- Message-ID
- <5dbd5dd1-3a50-c0ce-d06a-227ec0a89bc6@web.de>
Hi all,
on macOS 13.0 Ventura I get the following warning-turned-error when compiling the fsmonitor code:
compat/fsmonitor/fsm-listen-darwin.c:495:2: error: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Werror,-Wdeprecated-declarations]
FSEventStreamScheduleWithRunLoop(data->stream, data->rl, kCFRunLoopDefaultMode);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here
FSEventStreamScheduleWithRunLoop(
^
1 error generated.
make: *** [compat/fsmonitor/fsm-listen-darwin.o] Error 1No idea how to use FSEventStreamSetDispatchQueue. I could run tests if that helps.
René