summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-04-30 19:51:26 +0200
committerAraq <rumpf_a@web.de>2018-04-30 19:51:26 +0200
commit1a3b35603ce5eb3f6770e30fe930743edcfcbc68 (patch)
tree59dd58f350850dbc626321c0fbffea7f85bdb80b /compiler/commands.nim
parent85af8fb74cc06ea6044b8796791d7415d4a5f22f (diff)
parent0d2f8795ca7a6ce46e948f1dab1413872c4f688e (diff)
downloadNim-1a3b35603ce5eb3f6770e30fe930743edcfcbc68.tar.gz
Merge branch 'araq-strings-v1' into devel
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 34debbc49..364b1c43a 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -188,11 +188,11 @@ proc processSpecificNote*(arg: string, state: TSpecialWord, pass: TCmdLinePass,
   if i < len(arg) and (arg[i] in {':', '='}): inc(i)
   else: invalidCmdLineOption(pass, orig, info)
   if state == wHint:
-    var x = findStr(msgs.HintsToStr, id)
+    let x = findStr(msgs.HintsToStr, id)
     if x >= 0: n = TNoteKind(x + ord(hintMin))
     else: localError(info, "unknown hint: " & id)
   else:
-    var x = findStr(msgs.WarningsToStr, id)
+    let x = findStr(msgs.WarningsToStr, id)
     if x >= 0: n = TNoteKind(x + ord(warnMin))
     else: localError(info, "unknown warning: " & id)
   case substr(arg, i).normalize