From 46a1b13a4e276f29f737c7fd5049a8ed798c70e0 Mon Sep 17 00:00:00 2001 From: chiles <chiles> Date: Wed, 2 Oct 1991 13:07:38 +0000 Subject: [PATCH] Fixed lossage concerning the following compiler output: Definition has N args, but the previous definition had M. This used to be a note, but it should be a warning. If it is a warning that users change the definitions of structures, then it should be a warning when users change the definitions of functions. In both cases, code might be lying around assuming an incorrect interface. I think this is equally dangerous. Also, changing the redefinition of arg counts to a warning makes it more compatible with the warning that someone supposedly called a routine with the wrong number of args. --- compiler/ir1tran.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/ir1tran.lisp b/compiler/ir1tran.lisp index 6dbc02bbf..6306c9719 100644 --- a/compiler/ir1tran.lisp +++ b/compiler/ir1tran.lisp @@ -7,7 +7,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.52 1991/10/01 19:11:00 ram Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.53 1991/10/02 13:07:38 chiles Exp $") ;;; ;;; ********************************************************************** ;;; @@ -3250,7 +3250,7 @@ (let ((for-real (eq where-from :declared))) (assert-definition-type fun save-type - :error-function (if for-real #'compiler-warning #'compiler-note) + :error-function #'compiler-warning :warning-function (cond (function-info #'compiler-warning) (for-real #'compiler-note) (t nil)) -- GitLab