Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library does not build on macOS ventura (13.0.1) #216

Closed
imclaren opened this issue Dec 23, 2022 · 1 comment
Closed

This library does not build on macOS ventura (13.0.1) #216

imclaren opened this issue Dec 23, 2022 · 1 comment

Comments

@imclaren
Copy link

imclaren commented Dec 23, 2022

Note that this issue is a duplication of #212

This library does not build on macOS ventura (13.0.1):

github.com/rjeczalik/notify
cgo-gcc-prolog:217:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here

A workaround is to add the following to line 24 of watcher_fsevents_cgo.go to ignore this warning:

#cgo CFLAGS: -Wno-deprecated

However, preferably watcher_fsevents_cgo should be updated to use FSEventStreamSetDispatchQueue instead of FSEventStreamScheduleWithRunLoop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant