You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If pragma is applied to symbol then XDeclaredButNotUsed hint is disabled for every symbol in module (at least thats what I observed). The following code doesn't produce any XDeclaredButNotUsed
procp1=var a {.hint[XDeclaredButNotUsed]: off.} : intvar b: int# No XDeclaredButNotUsed messageprocp2=var b : int# No XDeclaredButNotUsed message
{.hint[XDeclaredButNotUsed]: off.} can be applied to vars, lets, consts, types, templates, but not to procs or macros.
This issue has been automatically marked as stale because it has not had recent activity. If you think it is still a valid issue, write a comment below; otherwise it will be closed. Thank you for your contributions.
stalebot
added
the
stale
Staled PR/issues; remove the label after fixing them
label
Aug 4, 2020
XDeclaredButNotUsed
hint is disabled for every symbol in module (at least thats what I observed). The following code doesn't produce anyXDeclaredButNotUsed
{.hint[XDeclaredButNotUsed]: off.}
can be applied to vars, lets, consts, types, templates, but not to procs or macros.Originated from #4641.
The text was updated successfully, but these errors were encountered: