diff options
author | Arun Isaac | 2022-08-16 23:58:36 +0530 |
---|---|---|
committer | Arun Isaac | 2022-08-17 00:51:44 +0530 |
commit | f495acfece2d5a972f613c33f4b2e9349d30e21d (patch) | |
tree | a266670efcea3aeab1ff0a8ffd53a96e89766c0a | |
parent | 5bb5b79f7182c7dea90a3d9dc4ce11d78b49234b (diff) | |
download | ennum-f495acfece2d5a972f613c33f4b2e9349d30e21d.tar.gz ennum-f495acfece2d5a972f613c33f4b2e9349d30e21d.tar.lz ennum-f495acfece2d5a972f613c33f4b2e9349d30e21d.zip |
Mark last-modified memoization argument as unused.
The last-modified argument is only for invalidating memoized results
of an older function call. Its value is not actually used. So, mark it
as such to avoid a compiler warning.
* ennum.el (ennum--file-hash, ennum--read-post): Mark last-modified
memoization argument as unused.
-rw-r--r-- | ennum.el | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -58,7 +58,7 @@ respectively by - and _, and the pad character = is optional." (ennum--file-hash file (file-attribute-modification-time (file-attributes file)))) -(defmemoize ennum--file-hash (file last-modified) +(defmemoize ennum--file-hash (file _last-modified) (with-temp-buffer ;; TODO: Use ennum-with-file-contents (set-buffer-multibyte nil) @@ -223,7 +223,7 @@ the current state of all its variables." filename (file-attribute-modification-time (file-attributes filename)))) -(defmemoize ennum--read-post (filename last-modified) +(defmemoize ennum--read-post (filename _last-modified) (ennum-with-file-contents filename (let ((metadata (org-export-get-environment 'ennum-html)) (export (apply-partially 'org-export-with-backend 'ennum-html))) |