SpartanJ / efsw

efsw is a C++ cross-platform file system watcher and notifier.
Other
662 stars 101 forks source link

Fix typo in WatcherFSEvents.cpp #107

Closed Pospelove closed 4 years ago

Pospelove commented 4 years ago

The library failed to build on macOS. I think that's a typo in WatcherFSEvents.cpp.

FAILED: CMakeFiles/efsw.dir/src/efsw/WatcherFSEvents.cpp.o 
/Library/Developer/CommandLineTools/usr/bin/c++  -DDEBUG -DEFSW_VERBOSE -I/Users/vagrant/Data/buildtrees/efsw/src/c8d343581e-3ec64856bb/src -I/Users/vagrant/Data/buildtrees/efsw/src/c8d343581e-3ec64856bb/include -fPIC -g -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk   -Wall -Wno-long-long -MD -MT CMakeFiles/efsw.dir/src/efsw/WatcherFSEvents.cpp.o -MF CMakeFiles/efsw.dir/src/efsw/WatcherFSEvents.cpp.o.d -o CMakeFiles/efsw.dir/src/efsw/WatcherFSEvents.cpp.o -c /Users/vagrant/Data/buildtrees/efsw/src/c8d343581e-3ec64856bb/src/efsw/WatcherFSEvents.cpp
/Users/vagrant/Data/buildtrees/efsw/src/c8d343581e-3ec64856bb/src/efsw/WatcherFSEvents.cpp:160:44: error: use of undeclared identifier 'path'
                        efDEBUG( "Event in: %s - flags: %ld\n", path.c_str(), event.Flags );
SpartanJ commented 4 years ago

Good catch, thanks for the PR. I'll change the CI to compile with verbose mode activated so I don't miss any similar issue.