tkf / emacs-request

Request.el -- Easy HTTP request for Emacs Lisp
http://tkf.github.com/emacs-request/
GNU General Public License v3.0
629 stars 93 forks source link

Installation and upgrades throw Unused lexical variable warnings #147

Closed cloudchin closed 5 years ago

cloudchin commented 5 years ago

As far as I can remember, installing and updating request.el from MELPA has always thrown these warnings when compiling. I can't say if the exact list has remained the same, but nonetheless, it's consistently thrown compiler warnings. Can this be avoided, and if not, why? Most importantly, what do these warnings mean in the context of using request.el?

I'm not familiar with the elisp compiler internals or it's relation to lexical binding but I found this as potentially related: https://stackoverflow.com/questions/31870656/what-does-the-underscore-mean-in-elisp

These are the warnings I received updating request.el today:

request.el:393:1:Warning: Unused lexical variable ‘unix-socket’
request.el:393:1:Warning: Unused lexical variable ‘status-code’
request.el:393:1:Warning: Unused lexical variable ‘timeout’
request.el:393:1:Warning: Unused lexical variable ‘complete’
request.el:393:1:Warning: Unused lexical variable ‘success’
request.el:393:1:Warning: Unused lexical variable ‘parser’
request.el:393:1:Warning: Unused lexical variable ‘files’
request.el:393:1:Warning: Unused lexical variable ‘type’
request.el:644:1:Warning: Unused lexical variable ‘timeout’
request.el:844:1:Warning: Unused lexical variable ‘version’
request.el:926:1:Warning: Unused lexical variable ‘timeout’
request.el:1047:1:Warning: Unused lexical variable ‘headers’
request.el:1047:1:Warning: Unused lexical variable ‘data’
request.el:1047:1:Warning: Unused lexical variable ‘type’
request.el:1173:1:Warning: Unused lexical variable ‘num-redirects’
request.el:1173:1:Warning: Unused lexical variable ‘version’
request.el:1260:1:Warning: Unused lexical variable ‘expiration’
request.el:1260:1:Warning: Unused lexical variable ‘http-only’
request.el:1260:1:Warning: Unused lexical variable ‘flag’

FWIW, I'm using emacs 26.2 as distributed by Fedora 30 repositories.