From 4598903aba6468abf8cc528280ca0165303cf52d Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Sun, 16 Apr 2017 17:19:31 +0200 Subject: [PATCH] Never used const size replaced for _ to supress compiler warning --- Sources/Curassow/Worker.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Curassow/Worker.swift b/Sources/Curassow/Worker.swift index ae7b93f..51e9f3f 100644 --- a/Sources/Curassow/Worker.swift +++ b/Sources/Curassow/Worker.swift @@ -86,7 +86,7 @@ class WorkerTemp { #if os(Linux) let filename = Data(capacity: Int(PATH_MAX)) let pointer = filename.bytes.bindMemory(to: CChar.self, capacity: filename.capacity) - let size = readlink("/proc/self/fd/\(descriptor)", pointer, filename.capacity) + let _ = readlink("/proc/self/fd/\(descriptor)", pointer, filename.capacity) #else let filename = Data(capacity: Int(MAXPATHLEN)) if fcntl(descriptor, F_GETPATH, filename.bytes) == -1 {