version-min=10.7 main.m
main.m:419:24: warning: 'fsgetpath' is only available on macOS 10.13 or newer
[-Wunguarded-availability-new]
ssize_t size = fsgetpath(buf, buflen, fsid, obj_id);
^~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/fsgetpath.h:46:9: note:
'fsgetpath' has been marked as being introduced in macOS 10.13 here, but
the deployment target is macOS 10.7.0
ssize_t fsgetpath(char *, size_t, fsid_t *, uint64_t) __OSX_AVAILABLE(10...
^
main.m:419:24: note: enclose 'fsgetpath' in an @available check to silence this
warning
ssize_t size = fsgetpath(buf, buflen, fsid, obj_id);
^~~~~~~~~
1 warning generated.
strip -x searchfs
The build succeeded despite the warnings.