diff options
Diffstat (limited to 'lib/posix')
-rw-r--r-- | lib/posix/epoll.nim | 2 | ||||
-rw-r--r-- | lib/posix/inotify.nim | 2 | ||||
-rw-r--r-- | lib/posix/linux.nim | 5 | ||||
-rw-r--r-- | lib/posix/posix.nim | 2 |
4 files changed, 10 insertions, 1 deletions
diff --git a/lib/posix/epoll.nim b/lib/posix/epoll.nim index 57a2f001f..ee04348e8 100644 --- a/lib/posix/epoll.nim +++ b/lib/posix/epoll.nim @@ -7,6 +7,8 @@ # distribution, for details about the copyright. # +{.deadCodeElim:on.} + from posix import TSocketHandle const diff --git a/lib/posix/inotify.nim b/lib/posix/inotify.nim index 28dcd652f..852eb12fa 100644 --- a/lib/posix/inotify.nim +++ b/lib/posix/inotify.nim @@ -7,6 +7,8 @@ # distribution, for details about the copyright. # +{.deadCodeElim:on.} + # Get the platform-dependent flags. # Structure describing an inotify event. type diff --git a/lib/posix/linux.nim b/lib/posix/linux.nim index 1ed1af3b6..be591e29a 100644 --- a/lib/posix/linux.nim +++ b/lib/posix/linux.nim @@ -1,3 +1,5 @@ +{.deadCodeElim:on.} + import posix const @@ -22,4 +24,5 @@ const # fn should be of type proc (a2: pointer): void {.cdecl.} proc clone*(fn: pointer; child_stack: pointer; flags: cint; - arg: pointer; ptid: ptr TPid; tls: pointer; ctid: ptr TPid): cint {.importc, header: "<sched.h>".} + arg: pointer; ptid: ptr TPid; tls: pointer; + ctid: ptr TPid): cint {.importc, header: "<sched.h>".} diff --git a/lib/posix/posix.nim b/lib/posix/posix.nim index 131f23fdd..e206447cc 100644 --- a/lib/posix/posix.nim +++ b/lib/posix/posix.nim @@ -27,6 +27,8 @@ ## resulting C code will just ``#include <XYZ.h>`` and *not* define the ## symbols declared here. +{.deadCodeElim:on.} + from times import TTime const |