From f789bec0c55166a19ed774ee2ebfe026168754a9 Mon Sep 17 00:00:00 2001 From: pw <pw> Date: Sun, 4 Mar 2001 21:32:40 +0000 Subject: [PATCH] Add inhibit-warnings declaration to macro ASSOC-GUTS to suppress spurious unreachable code notes when ASSOC is inlined (as in SUBLIS). This gets rid of 40/130 notes in compile-lisp.log. --- code/list.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/list.lisp b/code/list.lisp index 4900b84c9..48deded43 100644 --- a/code/list.lisp +++ b/code/list.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/list.lisp,v 1.24 2001/03/04 20:12:38 pw Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/list.lisp,v 1.25 2001/03/04 21:32:40 pw Exp $") ;;; ;;; ********************************************************************** ;;; @@ -861,6 +861,7 @@ (defmacro assoc-guts (test-guy) `(do ((alist alist (cdr alist))) ((endp alist)) + (declare (optimize (inhibit-warnings 3))) (if (car alist) (if ,test-guy (return (car alist)))))) -- GitLab