Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used
This commit is contained in:
parent
d836028fe7
commit
ebc02f6dc0
4 changed files with 28 additions and 30 deletions
|
|
@ -63,4 +63,4 @@ template withLock*(a: Lock, body: untyped) =
|
|||
try:
|
||||
body
|
||||
finally:
|
||||
a.release()
|
||||
a.release()
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
## This module contains Nim's support for reentrant locks.
|
||||
|
||||
const insideRLocksModule = true
|
||||
include "system/syslocks"
|
||||
|
||||
type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue