From e185ce3dddf8a54ae553c7f4da494482dea1f402 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Thu, 29 Jan 2026 04:46:15 -0800 Subject: [PATCH 1/2] Update project to treat warnings as errors --- iMCP.xcodeproj/project.pbxproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iMCP.xcodeproj/project.pbxproj b/iMCP.xcodeproj/project.pbxproj index aaef6a5..7e2ea78 100644 --- a/iMCP.xcodeproj/project.pbxproj +++ b/iMCP.xcodeproj/project.pbxproj @@ -305,6 +305,7 @@ GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; + GCC_TREAT_WARNINGS_AS_ERRORS = YES; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -321,6 +322,7 @@ ONLY_ACTIVE_ARCH = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_TREAT_WARNINGS_AS_ERRORS = YES; }; name = Debug; }; @@ -365,6 +367,7 @@ ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu17; GCC_NO_COMMON_BLOCKS = YES; + GCC_TREAT_WARNINGS_AS_ERRORS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; @@ -375,6 +378,7 @@ MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_TREAT_WARNINGS_AS_ERRORS = YES; }; name = Release; }; From 886fb4f98036d1aeefa2c8857f5d80ff145ef8c5 Mon Sep 17 00:00:00 2001 From: Mattt Zmuda Date: Thu, 29 Jan 2026 04:48:55 -0800 Subject: [PATCH 2/2] Fix warning about variable written to but not read --- App/Services/Calendar.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/App/Services/Calendar.swift b/App/Services/Calendar.swift index 4eeefbb..730fc9e 100644 --- a/App/Services/Calendar.swift +++ b/App/Services/Calendar.swift @@ -126,7 +126,6 @@ final class CalendarService: Service { let calendar = Calendar.current var startDate = now var endDate = calendar.date(byAdding: .weekOfYear, value: 1, to: now)! - var hasStart = false var hasEnd = false var startIsDateOnly = false var endIsDateOnly = false @@ -136,7 +135,6 @@ final class CalendarService: Service { fromISO8601String: start ) { - hasStart = true startDate = parsedStart.date startIsDateOnly = parsedStart.isDateOnly }