From 25515029f9cd62255c3a6c11bfefc1501eb510fd Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 2 Jan 2017 18:21:05 +0800 Subject: [PATCH] Fixed warning. --- Ditto.xcodeproj/project.pbxproj | 4 +++- Ditto.xcodeproj/xcshareddata/xcschemes/Ditto.xcscheme | 2 +- Ditto/ConvertibleTypes.swift | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Ditto.xcodeproj/project.pbxproj b/Ditto.xcodeproj/project.pbxproj index 1636cf0..44149c7 100644 --- a/Ditto.xcodeproj/project.pbxproj +++ b/Ditto.xcodeproj/project.pbxproj @@ -158,7 +158,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 0800; - LastUpgradeCheck = 0800; + LastUpgradeCheck = 0820; ORGANIZATIONNAME = Kevin; TargetAttributes = { 7681250E1D7EF01100856E0C = { @@ -257,6 +257,7 @@ CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_SUSPICIOUS_MOVES = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -310,6 +311,7 @@ CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_SUSPICIOUS_MOVES = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; diff --git a/Ditto.xcodeproj/xcshareddata/xcschemes/Ditto.xcscheme b/Ditto.xcodeproj/xcshareddata/xcschemes/Ditto.xcscheme index 0e74980..518fb3b 100644 --- a/Ditto.xcodeproj/xcshareddata/xcschemes/Ditto.xcscheme +++ b/Ditto.xcodeproj/xcshareddata/xcschemes/Ditto.xcscheme @@ -1,6 +1,6 @@ JSONValue? { } private func convertSequence(sequence: T) -> [Any] { - var convertedArray = [Any?]() + var convertedArray = [Any]() for element in sequence { if let element = convertAny(any: element) { convertedArray.append(element)