Skip to content

Commit

Permalink
Fix Xcode 10.2 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Apr 8, 2019
1 parent cc67e70 commit 67fc84c
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 19 deletions.
5 changes: 3 additions & 2 deletions FileKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0700;
LastUpgradeCheck = 0930;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "Nikolai Vazquez";
TargetAttributes = {
5204B84A1B96B83800AA473F = {
Expand All @@ -520,10 +520,11 @@
};
buildConfigurationList = 5204B7B01B968B8600AA473F /* Build configuration list for PBXProject "FileKit" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 5204B7AC1B968B8600AA473F;
productRefGroup = 5204B7B71B968B8600AA473F /* Products */;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0930"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
18 changes: 9 additions & 9 deletions Sources/DispatchWatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,33 @@ public extension DispatchFileSystemWatcherDelegate {
// MARK: - Extension

/// Call when the file-system object was deleted from the namespace.
public func fsWatcherDidObserveDelete(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveDelete(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object data changed.
public func fsWatcherDidObserveWrite(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveWrite(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object changed in size.
public func fsWatcherDidObserveExtend(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveExtend(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object metadata changed.
public func fsWatcherDidObserveAttrib(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveAttrib(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object link count changed.
public func fsWatcherDidObserveLink(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveLink(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object was renamed in the namespace.
public func fsWatcherDidObserveRename(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveRename(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object was revoked.
public func fsWatcherDidObserveRevoke(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveRevoke(_ watch: DispatchFileSystemWatcher) {}

/// Call when the file-system object was created.
public func fsWatcherDidObserveCreate(_ watch: DispatchFileSystemWatcher) {}
func fsWatcherDidObserveCreate(_ watch: DispatchFileSystemWatcher) {}

/// Call when the directory changed (additions, deletions, and renamings).
///
/// Calls `fsWatcherDidObserveWrite` by default.
public func fsWatcherDidObserveDirectoryChange(_ watch: DispatchFileSystemWatcher) {
func fsWatcherDidObserveDirectoryChange(_ watch: DispatchFileSystemWatcher) {
fsWatcherDidObserveWrite(watch)
}
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/Path.swift
Original file line number Diff line number Diff line change
Expand Up @@ -759,9 +759,9 @@ extension Path: Hashable {

// MARK: - Hashable

/// The hash value of the path.
public var hashValue: Int {
return rawValue.hashValue
/// To compute the hash value of the path.
public func hash(into hasher: inout Hasher) {
hasher.combine(rawValue)
}

}
Expand Down

0 comments on commit 67fc84c

Please sign in to comment.