Merge pull request #3735 from oderwat/FixDeprecationWarnings

Fixed deprecation warnings while Nim compiles.
This commit is contained in:
Andreas Rumpf 2016-01-19 10:11:23 +01:00
commit 0dee918de9
7 changed files with 7 additions and 8 deletions

View file

@ -100,7 +100,7 @@ when defined(Windows):
stdout.write "\n"
else:
import linenoise, termios, unsigned
import linenoise, termios
proc readLineFromStdin*(prompt: string): TaintedString {.
tags: [ReadIOEffect, WriteIOEffect].} =

View file

@ -12,7 +12,7 @@
# TODO: Clean up the exports a bit and everything else in general.
import unsigned, os
import os
when hostOS == "solaris":
{.passl: "-lsocket -lnsl".}

View file

@ -10,7 +10,7 @@
## This module implements a high-level cross-platform sockets interface.
{.deadCodeElim: on.}
import nativesockets, os, strutils, unsigned, parseutils, times
import nativesockets, os, strutils, parseutils, times
export Port, `$`, `==`
const useWinVersion = defined(Windows) or defined(nimdoc)

View file

@ -7,8 +7,7 @@
# distribution, for details about the copyright.
#
import
strutils, unsigned
import strutils
const Sha1DigestSize = 20