macos: mark junk as 'used' to fix -Wunused-but-set-variable warning (#229)
This commit is contained in:
parent
1052cc14d5
commit
97c04789a6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue