emacs-diffs
[Top][All Lists]
Advanced

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

master 314cbef849: ; Suppress empty-body warnings in cedet/semantic


From: Mattias Engdegård
Subject: master 314cbef849: ; Suppress empty-body warnings in cedet/semantic
Date: Thu, 29 Dec 2022 07:24:00 -0500 (EST)

branch: master
commit 314cbef84944145e2160736ce32812403ed99cd9
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    ; Suppress empty-body warnings in cedet/semantic
---
 lisp/cedet/semantic/lex-spp.el | 2 +-
 lisp/cedet/semantic/lex.el     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/cedet/semantic/lex-spp.el b/lisp/cedet/semantic/lex-spp.el
index 390c13ec98..f3704f9a4d 100644
--- a/lisp/cedet/semantic/lex-spp.el
+++ b/lisp/cedet/semantic/lex-spp.el
@@ -1243,7 +1243,7 @@ Finds the header file belonging to NAME, gets the macros
 from that file, and then merge the macros with our current
 symbol table."
   (when semantic-lex-spp-use-headers-flag
-    ;; @todo - do this someday, ok?
+    nil  ; @todo - do this someday, ok?
     ))
 
 (defmacro define-lex-spp-include-analyzer (name doc regexp tokidx
diff --git a/lisp/cedet/semantic/lex.el b/lisp/cedet/semantic/lex.el
index 264b202771..e4bce67c6f 100644
--- a/lisp/cedet/semantic/lex.el
+++ b/lisp/cedet/semantic/lex.el
@@ -1108,7 +1108,7 @@ This can be done by using `semantic-lex-push-token'."
             (semantic-lex-analysis-bounds (cons (point) (point-max)))
             (semantic-lex-current-depth 0)
             (semantic-lex-maximum-depth semantic-lex-depth))
-        (when ,condition ,@forms)
+        (when ,condition nil ,@forms)  ; `nil' avoids an empty-body warning.
         semantic-lex-token-stream))))
 
 (defmacro define-lex-regex-analyzer (name doc regexp &rest forms)



reply via email to

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