aboutsummaryrefslogtreecommitdiff
path: root/ennum.el
diff options
context:
space:
mode:
authorArun Isaac2022-08-16 23:58:36 +0530
committerArun Isaac2022-08-17 00:51:44 +0530
commitf495acfece2d5a972f613c33f4b2e9349d30e21d (patch)
treea266670efcea3aeab1ff0a8ffd53a96e89766c0a /ennum.el
parent5bb5b79f7182c7dea90a3d9dc4ce11d78b49234b (diff)
downloadennum-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.
Diffstat (limited to 'ennum.el')
-rw-r--r--ennum.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/ennum.el b/ennum.el
index d52b2df..35b38ab 100644
--- a/ennum.el
+++ b/ennum.el
@@ -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)))