From f495acfece2d5a972f613c33f4b2e9349d30e21d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 16 Aug 2022 23:58:36 +0530 Subject: 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. --- ennum.el | 4 ++-- 1 file 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))) -- cgit v1.2.3