macos: mark junk as 'used' to fix -Wunused-but-set-variable warning (#229)

This commit is contained in:
Anonymous Maarten 2022-11-01 08:30:00 +01:00 committed by GitHub
parent 1052cc14d5
commit 97c04789a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ int OS_IsDebuggerPresent()
size = sizeof(info);
junk = sysctl(mib, sizeof(mib) / sizeof(*mib), &info, &size, NULL, 0);
(void)junk;
assert(junk == 0);
// We're being debugged if the P_TRACED flag is set.