builtin: fix an unused var warning on windows

pull/9855/head
Alexander Medvednikov 2021-04-23 15:17:02 +03:00
parent 669a4ea1be
commit 49a2de562b
1 changed files with 1 additions and 0 deletions

View File

@ -267,6 +267,7 @@ fn break_if_debugger_attached() {
unsafe { unsafe {
mut ptr := &voidptr(0) mut ptr := &voidptr(0)
*ptr = voidptr(0) *ptr = voidptr(0)
_ = ptr
} }
} $else { } $else {
if C.IsDebuggerPresent() { if C.IsDebuggerPresent() {