Skip to content

Commit 67fc84c

Browse files
committed
Fix Xcode 10.2 warnings
1 parent cc67e70 commit 67fc84c

File tree

8 files changed

+20
-19
lines changed

8 files changed

+20
-19
lines changed

FileKit.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
isa = PBXProject;
496496
attributes = {
497497
LastSwiftUpdateCheck = 0700;
498-
LastUpgradeCheck = 0930;
498+
LastUpgradeCheck = 1020;
499499
ORGANIZATIONNAME = "Nikolai Vazquez";
500500
TargetAttributes = {
501501
5204B84A1B96B83800AA473F = {
@@ -520,10 +520,11 @@
520520
};
521521
buildConfigurationList = 5204B7B01B968B8600AA473F /* Build configuration list for PBXProject "FileKit" */;
522522
compatibilityVersion = "Xcode 3.2";
523-
developmentRegion = English;
523+
developmentRegion = en;
524524
hasScannedForEncodings = 0;
525525
knownRegions = (
526526
en,
527+
Base,
527528
);
528529
mainGroup = 5204B7AC1B968B8600AA473F;
529530
productRefGroup = 5204B7B71B968B8600AA473F /* Products */;

FileKit.xcodeproj/xcshareddata/xcschemes/FileKit-OSX.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

FileKit.xcodeproj/xcshareddata/xcschemes/FileKit-iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

FileKit.xcodeproj/xcshareddata/xcschemes/FileKit-tvOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

FileKit.xcodeproj/xcshareddata/xcschemes/FileKit-watchOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

FileKit.xcodeproj/xcshareddata/xcschemes/FileKitTests.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0930"
3+
LastUpgradeVersion = "1020"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Sources/DispatchWatcher.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,33 +50,33 @@ public extension DispatchFileSystemWatcherDelegate {
5050
// MARK: - Extension
5151

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

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

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

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

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

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

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

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

7676
/// Call when the directory changed (additions, deletions, and renamings).
7777
///
7878
/// Calls `fsWatcherDidObserveWrite` by default.
79-
public func fsWatcherDidObserveDirectoryChange(_ watch: DispatchFileSystemWatcher) {
79+
func fsWatcherDidObserveDirectoryChange(_ watch: DispatchFileSystemWatcher) {
8080
fsWatcherDidObserveWrite(watch)
8181
}
8282
}

Sources/Path.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,9 @@ extension Path: Hashable {
759759

760760
// MARK: - Hashable
761761

762-
/// The hash value of the path.
763-
public var hashValue: Int {
764-
return rawValue.hashValue
762+
/// To compute the hash value of the path.
763+
public func hash(into hasher: inout Hasher) {
764+
hasher.combine(rawValue)
765765
}
766766

767767
}

0 commit comments

Comments
 (0)