emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master fab7b86 3/4: Suppress compilation warnings in obsol


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master fab7b86 3/4: Suppress compilation warnings in obsolete/otodo-mode.el
Date: Sat, 15 Jun 2019 11:13:59 -0400 (EDT)

branch: master
commit fab7b863efd42dd745983db6096651741ab93ecf
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Suppress compilation warnings in obsolete/otodo-mode.el
    
    * lisp/obsolete/otodo-mode.el (lexical): Suppress warnings about
    non-prefixed variables because this file is obsolete.
---
 lisp/obsolete/otodo-mode.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lisp/obsolete/otodo-mode.el b/lisp/obsolete/otodo-mode.el
index 7e9cc23..7a0adc8 100644
--- a/lisp/obsolete/otodo-mode.el
+++ b/lisp/obsolete/otodo-mode.el
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]