Skip to content

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

Closed
@imclaren

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions