Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed compilation warnings #130

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/boomer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ proc main() =
body
i += 1

template asOptionalParam(paramVar: untyped, body: untyped) =
template asOptionalParam(paramVar: untyped, body: untyped) {. warning[UnreachableCode]:off.} =
let paramVar = block:
var resultVal = none(string)
if i + 1 <= paramCount():
Expand Down Expand Up @@ -329,8 +329,8 @@ proc main() =

discard XMapWindow(display, win)

var wmName = "boomer"
var wmClass = "Boomer"
var wmName: cstring = "boomer"
var wmClass: cstring = "Boomer"
var hints = XClassHint(res_name: wmName, res_class: wmClass)

discard XStoreName(display, win, wmName)
Expand Down