From 3189c0a2a915e0c76ec1ed9098f71eefab062a95 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 10 Feb 2021 04:34:13 -0800 Subject: fix warning nim nim doc posix (#16995) --- lib/posix/posix.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/posix') 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: "".} +{.push warning[deprecated]: off.} proc CMSG_SPACE*(len: csize): csize {. importc, header: "", deprecated: "argument `len` should be of type `csize_t`".} +{.pop.} proc CMSG_SPACE*(len: csize_t): csize_t {. importc, header: "".} +{.push warning[deprecated]: off.} proc CMSG_LEN*(len: csize): csize {. importc, header: "", deprecated: "argument `len` should be of type `csize_t`".} +{.pop.} proc CMSG_LEN*(len: csize_t): csize_t {. importc, header: "".} -- cgit 1.4.1-2-gfad0