# HG changeset patch # User james # Date 1095186155 0 # Node ID 0be6ff2356c82bd6724818565ca84d43a1edf451 # Parent e13775448cf0aca6f49dfc572285b1db72473cba [xemacs-hg @ 2004-09-14 18:22:31 by james] Fix noreturn-related warnings for icc and gcc. diff -r e13775448cf0 -r 0be6ff2356c8 src/ChangeLog --- 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 + + * compiler.h: Change definition of RETURN_NOT_REACHED for icc. + * glyphs-eimage.c (tiff_memory_write): Quiet gcc warning. + 2004-09-13 Jerry James * callproc.c: Really remove. diff -r e13775448cf0 -r 0be6ff2356c8 src/compiler.h --- 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)) diff -r e13775448cf0 -r 0be6ff2356c8 src/glyphs-eimage.c --- 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