From d71d6a679d308ea8406de30f8fe7cb4e1fadadb1 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 8 Apr 2026 20:19:27 +0800 Subject: [PATCH] Swap (macOS): fixes a compiler warning --- src/detection/swap/swap_apple.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/detection/swap/swap_apple.c b/src/detection/swap/swap_apple.c index 21fa866d2..d53148e7b 100644 --- a/src/detection/swap/swap_apple.c +++ b/src/detection/swap/swap_apple.c @@ -11,9 +11,11 @@ const char* ffDetectSwap(FFlist* result) { } if (xsw.xsu_total == 0) { - if (!__builtin_available(macOS 26.0, *)) { - if (ffSysctlGetInt("vm.compressor_mode", 4) <= 2) { // No longer available in macOS 26.0 - return NULL; // Swap is disabled + if (__builtin_available(macOS 26.0, *)) { + // "vm.compressor_mode" no longer exists in macOS 26.0 + } else { + if (ffSysctlGetInt("vm.compressor_mode", 4) <= 2) { + return NULL; // Swap is disabled } } }