Skip to content

Commit

Permalink
Also disable warning for eventName
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Feb 16, 2024
1 parent ee66c0d commit 7e21eab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chronicles.nim
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ macro logIMPL(lineInfo: static InstInfo,
# `declared but not used` when there is no logging code generated.
# push/pop pragma pairs cannot be used in this situation
# because the variables are declared outside of this function.
result.add quote do: chroniclesUsedMagic(`eventName`)
for k, v in finalBindings:
result.add quote do: chroniclesUsedMagic(`v`)

Expand Down

0 comments on commit 7e21eab

Please sign in to comment.