Skip to content

Commit

Permalink
suppress deprecated warnings (nim-lang#19408)
Browse files Browse the repository at this point in the history
* suppress deprecated warnings

once bump version to 1.7.3 enable deprecated messages

* deprecate later
  • Loading branch information
ringabout authored and PMunch committed Mar 28, 2022
1 parent 88128f1 commit 7e5fb1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ proc `addr`*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
## echo p[] # b
discard

proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect,
deprecated: "'unsafeAddr' is a deprecated alias for 'addr'".} =
proc unsafeAddr*[T](x: T): ptr T {.magic: "Addr", noSideEffect.} =
## Builtin `addr` operator for taking the address of a memory
## location.
##
Expand Down

0 comments on commit 7e5fb1e

Please sign in to comment.