diff options
| author | Lars Ingebrigtsen | 2022-08-04 17:46:14 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-08-04 17:46:14 +0200 |
| commit | bccb3abef7d627cfa1c5170cb0d30d0450284ec3 (patch) | |
| tree | 272826cf2ae7323067b904e8f9a13339d58920ed | |
| parent | 5d5ab3cacdaf56210038957873bd74883016e4e5 (diff) | |
| download | emacs-bccb3abef7d627cfa1c5170cb0d30d0450284ec3.tar.gz emacs-bccb3abef7d627cfa1c5170cb0d30d0450284ec3.zip | |
Suppress compilation warnings in netrc.el
* lisp/obsolete/netrc.el (netrc-machine-user-or-password)
(netrc-credentials): Suppress some warnings.
| -rw-r--r-- | lisp/obsolete/netrc.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/obsolete/netrc.el b/lisp/obsolete/netrc.el index 9d3ae315141..f664a77a9b1 100644 --- a/lisp/obsolete/netrc.el +++ b/lisp/obsolete/netrc.el | |||
| @@ -164,7 +164,8 @@ default ports DEFAULTS to `netrc-machine'. | |||
| 164 | MODE can be \"login\" or \"password\", suitable for passing to | 164 | MODE can be \"login\" or \"password\", suitable for passing to |
| 165 | `netrc-get'." | 165 | `netrc-get'." |
| 166 | (let ((authinfo-list (if (stringp authinfo-file-or-list) | 166 | (let ((authinfo-list (if (stringp authinfo-file-or-list) |
| 167 | (netrc-parse authinfo-file-or-list) | 167 | (with-suppressed-warnings ((obsolete netrc-parse)) |
| 168 | (netrc-parse authinfo-file-or-list)) | ||
| 168 | authinfo-file-or-list)) | 169 | authinfo-file-or-list)) |
| 169 | (ports (or ports '(nil))) | 170 | (ports (or ports '(nil))) |
| 170 | (defaults (or defaults '(nil))) | 171 | (defaults (or defaults '(nil))) |
| @@ -227,7 +228,8 @@ MODE can be \"login\" or \"password\", suitable for passing to | |||
| 227 | "Return a user name/password pair. | 228 | "Return a user name/password pair. |
| 228 | Port specifications will be prioritized in the order they are | 229 | Port specifications will be prioritized in the order they are |
| 229 | listed in the PORTS list." | 230 | listed in the PORTS list." |
| 230 | (let ((list (netrc-parse)) | 231 | (let ((list (with-suppressed-warnings ((obsolete netrc-parse)) |
| 232 | (netrc-parse))) | ||
| 231 | found) | 233 | found) |
| 232 | (if (not ports) | 234 | (if (not ports) |
| 233 | (setq found (netrc-machine list machine)) | 235 | (setq found (netrc-machine list machine)) |