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

3 messages from 2022-11-05 to 2022-11-15. Participants: René Scharfe, Taylor Blau, Jeff Hostetler.
Thread: https://gitlist.dev/t/58750

## René Scharfe, 2022-11-05 17:26

Subject: compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura
Message-ID: <5dbd5dd1-3a50-c0ce-d06a-227ec0a89bc6@web.de>
URL: https://gitlist.dev/e/5dbd5dd1-3a50-c0ce-d06a-227ec0a89bc6%40web.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 1


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

René


```

## Taylor Blau, 2022-11-08 03:00

Subject: Re: compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura
Message-ID: <Y2nGYFHOIYmzMhsG@nand.local>
URL: https://gitlist.dev/e/Y2nGYFHOIYmzMhsG%40nand.local
In-Reply-To: <5dbd5dd1-3a50-c0ce-d06a-227ec0a89bc6@web.de>

```
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, 2022-11-15 18:48

Subject: Re: compat/fsmonitor/fsm-listen-darwin warning on macOS Ventura
Message-ID: <89762517-bde0-4512-797c-f0c75a8f7e76@jeffhostetler.com>
URL: https://gitlist.dev/e/89762517-bde0-4512-797c-f0c75a8f7e76%40jeffhostetler.com
In-Reply-To: <5dbd5dd1-3a50-c0ce-d06a-227ec0a89bc6@web.de>

```


On 11/5/22 1:26 PM, René Scharfe wrote:
> 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

```
