From 97e9bddd0fc1a4cf83cdb0bfa12997f7e7d52f0d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 12 Sep 2020 15:06:58 +0200 Subject: [PATCH] Fix compilation warning in cl-lib.el * lisp/emacs-lisp/cl-lib.el (cl-old-struct-compat-mode): Put the minor mode in the tools group (to avoid a compilation warning). --- lisp/emacs-lisp/cl-lib.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/cl-lib.el b/lisp/emacs-lisp/cl-lib.el index 7a4d3c9c3e3..86ee94e87e0 100644 --- a/lisp/emacs-lisp/cl-lib.el +++ b/lisp/emacs-lisp/cl-lib.el @@ -663,6 +663,7 @@ This can be needed when using code byte-compiled using the old macro-expansion of `cl-defstruct' that used vectors objects instead of record objects." :global t + :group 'tools (cond (cl-old-struct-compat-mode (advice-add 'type-of :around #'cl--old-struct-type-of)) -- 2.39.5