]> git.eshelyaron.com Git - emacs.git/commitdiff
Suppress compilation warnings in obsolete/otodo-mode.el
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jun 2019 15:12:10 +0000 (17:12 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jun 2019 15:12:10 +0000 (17:12 +0200)
* lisp/obsolete/otodo-mode.el (lexical): Suppress warnings about
non-prefixed variables because this file is obsolete.

lisp/obsolete/otodo-mode.el

index 7e9cc231d3ab146a5d150eeb3c534d0c313a91dd..7a0adc81a97681582027cb73d096e4cb206d8e32 100644 (file)
@@ -925,8 +925,9 @@ If INCLUDE-SEP is non-nil, return point after the separator."
   "Major mode for editing TODO lists."
   (easy-menu-add todo-menu))
 
-(defvar date)
-(defvar entry)
+(with-suppressed-warnings ((lexical date entry))
+  (defvar date)
+  (defvar entry))
 
 ;; t-c should be used from diary code, which requires calendar.
 (declare-function calendar-current-date "calendar" (&optional offset))