dominikh / go-mode.el

Emacs mode for the Go programming language
BSD 3-Clause "New" or "Revised" License
1.37k stars 209 forks source link

Byte-compiler warnings #352

Closed lassik closed 4 years ago

lassik commented 4 years ago

In *Compile-Log* from today's MELPA version:

In go--in-case-clause-list-p:
go-mode.el:656:28:Warning: reference to free variable
    ‘go--case-or-default-regexp’
go-mode.el:672:24:Warning: reference to free variable ‘go--case-regexp’

In go--fill-prefix:
go-mode.el:743:31:Warning: reference to free variable
    ‘go--comment-start-regexp’

In go--interesting-comment-p:
go-mode.el:786:18:Warning: reference to free variable
    ‘go--comment-start-regexp’

In go--fill-forward-paragraph:
go-mode.el:806:33:Warning: reference to free variable
    ‘go--comment-start-regexp’

In go--boring-line-p:
go-mode.el:1151:24:Warning: reference to free variable
    ‘go--comment-start-regexp’

In go--case-comment-p:
go-mode.el:1207:38:Warning: reference to free variable
    ‘go--case-or-default-regexp’
psanford commented 4 years ago

Moving these (defconst) up to before they are used would fix these warnings.