diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-10 04:34:13 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 13:34:13 +0100 |
commit | 3189c0a2a915e0c76ec1ed9098f71eefab062a95 (patch) | |
tree | d637618f1711a4458102d837809e4bba64068548 | |
parent | 897cb4b077736a4658a725d498dea40032c58041 (diff) | |
download | Nim-3189c0a2a915e0c76ec1ed9098f71eefab062a95.tar.gz |
fix warning nim nim doc posix (#16995)
-rw-r--r-- | lib/posix/posix.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index e8ad786e9..b5da42757 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -878,14 +878,18 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {. proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {. importc, header: "<sys/socket.h>".} +{.push warning[deprecated]: off.} proc CMSG_SPACE*(len: csize): csize {. importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".} +{.pop.} proc CMSG_SPACE*(len: csize_t): csize_t {. importc, header: "<sys/socket.h>".} +{.push warning[deprecated]: off.} proc CMSG_LEN*(len: csize): csize {. importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".} +{.pop.} proc CMSG_LEN*(len: csize_t): csize_t {. importc, header: "<sys/socket.h>".} |