threads / discuss / 58750

compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura

Subject: compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura

## tl;dr

3 messages between Nov 5, 2022 and Nov 15, 2022.

replies: 2people: 3as markdown or json

René Scharfe· Nov 5, 2022, 17:26 UTC · lore
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 1

No idea how to use FSEventStreamSetDispatchQueue. I could run tests if that helps.

René
Taylor Blau· Nov 8, 2022, 03:00 UTC · re: René Scharfe · lore

Re: compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura

On Sat, Nov 05, 2022 at 06:26:57PM +0100, René Scharfe wrote:
> No idea how to use FSEventStreamSetDispatchQueue.  I could run tests
> if that helps.
Ditto to both :-).

Thanks, Taylor

Jeff Hostetler· Nov 15, 2022, 18:48 UTC · re: René Scharfe · lore

Re: compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura

On 11/5/22 1:26 PM, René Scharfe wrote:
Show 21 quoted lines
> 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 1
> 
> 
> No idea how to use FSEventStreamSetDispatchQueue.  I could run tests
> if that helps.
> 
> René
> 

Thanks for the note. I'll take a look and see if/how much this changes things.

Jeff

← back to recent threads