+2006-04-11 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * lisp.h (wrong_type_argument): Mark as NO_RETURN.
+
+ * data.c (wrong_type_argument): Try to avoid compiler warnings due
+ to the fact the function is now marked as NO_RETURN.
+
2006-04-10 Eli Zaretskii <eliz@gnu.org>
* s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
tem = call1 (predicate, value);
}
while (NILP (tem));
+ /* This function is marked as NO_RETURN, gcc would warn if it has a
+ return statement or if falls off the function. Other compilers
+ warn if no return statement is present. */
+#ifndef __GNUC__
return value;
+#else
+ abort ();
+#endif
}
void
extern void args_out_of_range P_ ((Lisp_Object, Lisp_Object)) NO_RETURN;
extern void args_out_of_range_3 P_ ((Lisp_Object, Lisp_Object,
Lisp_Object)) NO_RETURN;
-extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object));
+extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object)) NO_RETURN;
extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object,
Lisp_Object, struct buffer *));
extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object));