mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 09:58:03 +02:00
Swap (macOS): fixes a compiler warning
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user