fix warning nim nim doc posix (#16995)
This commit is contained in:
parent
897cb4b077
commit
3189c0a2a9
1 changed files with 4 additions and 0 deletions
|
|
@ -878,14 +878,18 @@ proc CMSG_NXTHDR*(mhdr: ptr Tmsghdr, cmsg: ptr Tcmsghdr): ptr Tcmsghdr {.
|
||||||
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
|
proc CMSG_FIRSTHDR*(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.
|
||||||
importc, header: "<sys/socket.h>".}
|
importc, header: "<sys/socket.h>".}
|
||||||
|
|
||||||
|
{.push warning[deprecated]: off.}
|
||||||
proc CMSG_SPACE*(len: csize): csize {.
|
proc CMSG_SPACE*(len: csize): csize {.
|
||||||
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
|
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
|
||||||
|
{.pop.}
|
||||||
|
|
||||||
proc CMSG_SPACE*(len: csize_t): csize_t {.
|
proc CMSG_SPACE*(len: csize_t): csize_t {.
|
||||||
importc, header: "<sys/socket.h>".}
|
importc, header: "<sys/socket.h>".}
|
||||||
|
|
||||||
|
{.push warning[deprecated]: off.}
|
||||||
proc CMSG_LEN*(len: csize): csize {.
|
proc CMSG_LEN*(len: csize): csize {.
|
||||||
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
|
importc, header: "<sys/socket.h>", deprecated: "argument `len` should be of type `csize_t`".}
|
||||||
|
{.pop.}
|
||||||
|
|
||||||
proc CMSG_LEN*(len: csize_t): csize_t {.
|
proc CMSG_LEN*(len: csize_t): csize_t {.
|
||||||
importc, header: "<sys/socket.h>".}
|
importc, header: "<sys/socket.h>".}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue