changeset 2270:0be6ff2356c8

[xemacs-hg @ 2004-09-14 18:22:31 by james] Fix noreturn-related warnings for icc and gcc.
author james
date Tue, 14 Sep 2004 18:22:35 +0000
parents e13775448cf0
children 0dfff19d20da
files src/ChangeLog src/compiler.h src/glyphs-eimage.c
diffstat 3 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Sep 14 14:40:19 2004 +0000
+++ b/src/ChangeLog	Tue Sep 14 18:22:35 2004 +0000
@@ -1,3 +1,8 @@
+2004-09-14  Jerry James  <james@xemacs.org>
+
+	* compiler.h: Change definition of RETURN_NOT_REACHED for icc.
+	* glyphs-eimage.c (tiff_memory_write): Quiet gcc warning.
+
 2004-09-13  Jerry James  <james@xemacs.org>
 
 	* callproc.c: Really remove.
--- a/src/compiler.h	Tue Sep 14 14:40:19 2004 +0000
+++ b/src/compiler.h	Tue Sep 14 18:22:35 2004 +0000
@@ -113,7 +113,9 @@
 #ifndef DOESNT_RETURN_TYPE
 # if (GCC_VERSION > NEED_GCC (0, 0, 0))
 #  if (GCC_VERSION >= NEED_GCC (2, 5, 0))
-#   define RETURN_NOT_REACHED(value) DO_NOTHING
+#   ifndef __INTEL_COMPILER
+#    define RETURN_NOT_REACHED(value) DO_NOTHING
+#   endif
 #   define DOESNT_RETURN_TYPE(rettype) rettype
 #   define DECLARE_DOESNT_RETURN_TYPE(rettype,decl) rettype decl \
 	   __attribute__ ((noreturn))
--- a/src/glyphs-eimage.c	Tue Sep 14 14:40:19 2004 +0000
+++ b/src/glyphs-eimage.c	Tue Sep 14 18:22:35 2004 +0000
@@ -1111,7 +1111,7 @@
 tiff_memory_write (thandle_t data, tdata_t buf, tsize_t size)
 {
   abort();
-  RETURN_NOT_REACHED (0);
+  return 0;
 }
 
 static toff_t