]> git.eshelyaron.com Git - emacs.git/commitdiff
* doc/lispref/functions.texi (Declare Form): Better warn about UB.
authorAndrea Corallo <acorallo@gnu.org>
Thu, 2 May 2024 10:15:30 +0000 (12:15 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:33:58 +0000 (18:33 +0200)
(cherry picked from commit 390b606ffcedd7a14e94631c8ab1155db623e723)

doc/lispref/functions.texi

index 1816ea93e3d89cf869edbe4e4e055eb5f18fb05f..3aa4fc9a457d0d325af00c4e5e44d26fea7a94bd 100644 (file)
@@ -2750,9 +2750,10 @@ argument of type @var{string} and return one of the symbols
 
 More types are described in @pxref{Lisp Data Types}.
 
-Declaring a function with an incorrect type produces undefined behavior.
-Note also that when redefining (or advising) a type declared function
-the replacement should respect the original signature to avoid undefined
+Declaring a function with an incorrect type produces undefined behavior
+and could lead to unexpected results or might even crash Emacs.  Note
+also that when redefining (or advising) a type declared function the
+replacement should respect the original signature to avoid undefined
 behavior.
 
 @item no-font-lock-keyword