diff src/data.c @ 69928:56d8e0539545

* 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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Tue, 11 Apr 2006 07:13:33 +0000
parents eb6c6d7a4c7f
children d1cea7530d3d 24cf4bf418dc c156f6a9e7b5
line wrap: on
line diff
--- a/src/data.c	Tue Apr 11 01:28:04 2006 +0000
+++ b/src/data.c	Tue Apr 11 07:13:33 2006 +0000
@@ -125,7 +125,14 @@
       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