aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorDan Nicolaescu2006-04-11 07:13:33 +0000
committerDan Nicolaescu2006-04-11 07:13:33 +0000
commitdb926d809113fbb185dfc9e400bdf3216a687762 (patch)
tree1e836cc8120496a6647be0f45a6fdef0e8383fd3 /src/data.c
parent2fb18d1328ca01410d24a73939e5b79a6a12a914 (diff)
downloademacs-db926d809113fbb185dfc9e400bdf3216a687762.tar.gz
emacs-db926d809113fbb185dfc9e400bdf3216a687762.zip
* 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.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 73f712279d7..8b8015bb002 100644
--- a/src/data.c
+++ b/src/data.c
@@ -125,7 +125,14 @@ wrong_type_argument (predicate, value)
125 tem = call1 (predicate, value); 125 tem = call1 (predicate, value);
126 } 126 }
127 while (NILP (tem)); 127 while (NILP (tem));
128 /* This function is marked as NO_RETURN, gcc would warn if it has a
129 return statement or if falls off the function. Other compilers
130 warn if no return statement is present. */
131#ifndef __GNUC__
128 return value; 132 return value;
133#else
134 abort ();
135#endif
129} 136}
130 137
131void 138void