Skip to content

Silence warnings#96

Open
PuercoPop wants to merge 6 commits into
rmuslimov:masterfrom
PuercoPop:fix-warnings
Open

Silence warnings#96
PuercoPop wants to merge 6 commits into
rmuslimov:masterfrom
PuercoPop:fix-warnings

Conversation

@PuercoPop
Copy link
Copy Markdown

  • Silence warning about unused arguments
  • Replace SEQ-CONTAINS with SEQ-CONTAINS-P
    SEQ-CONTAINS was obsoleted in Emacs 27.1
  • Silence warnings about functions not known to be defined
  • Silence warning about usage of unescaped single quotes
  • Silence warnings about docstring being wider than 80 characters
  • Ignore autoload files

By naming the variable with the _ prefix the compiler knows it is intended to be unused.

> In browse-at-remote--format-region-url-as-gitiles:
> lib/browse-at-remote/browse-at-remote.el:456:103: Warning: Unused lexical argument `lineend'
> lib/browse-at-remote/browse-at-remote.el:83:2: Warning: custom-declare-variable `browse-at-remote-preferred-remote-name' docstring wider than 80 characters
> lib/browse-at-remote/browse-at-remote.el:102:2: Warning: custom-declare-variable `browse-at-remote-add-line-number-if-no-region-selected' docstring wider than 80 characters
>
> In browse-at-remote--get-preferred-remote:
> lib/browse-at-remote/browse-at-remote.el:227:2: Warning: docstring wider than 80 characters
>
> In browse-at-remote--get-formatter:
> lib/browse-at-remote/browse-at-remote.el:274:2: Warning: docstring wider than 80 characters
> In browse-at-remote--format-region-url-as-pagure:
> lib/browse-at-remote/browse-at-remote.el:439:20: Warning: ‘seq-contains’ is an obsolete function (as of 27.1); use ‘seq-contains-p’ instead.
> In end of data:
> lib/browse-at-remote/browse-at-remote.el:544:42: Warning: the function ‘log-view-current-entry’ is not known to be defined.
> lib/browse-at-remote/browse-at-remote.el:514:34: Warning: the function ‘dired-current-directory’ is not known to be defined.
> lib/browse-at-remote/browse-at-remote.el:375:2: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant