Mercurial > hg > xemacs-beta
comparison src/compiler.h @ 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 | 61855263cb07 |
children | 04bc9d2f42c7 |
comparison
equal
deleted
inserted
replaced
2269:e13775448cf0 | 2270:0be6ff2356c8 |
---|---|
111 #endif | 111 #endif |
112 | 112 |
113 #ifndef DOESNT_RETURN_TYPE | 113 #ifndef DOESNT_RETURN_TYPE |
114 # if (GCC_VERSION > NEED_GCC (0, 0, 0)) | 114 # if (GCC_VERSION > NEED_GCC (0, 0, 0)) |
115 # if (GCC_VERSION >= NEED_GCC (2, 5, 0)) | 115 # if (GCC_VERSION >= NEED_GCC (2, 5, 0)) |
116 # define RETURN_NOT_REACHED(value) DO_NOTHING | 116 # ifndef __INTEL_COMPILER |
117 # define RETURN_NOT_REACHED(value) DO_NOTHING | |
118 # endif | |
117 # define DOESNT_RETURN_TYPE(rettype) rettype | 119 # define DOESNT_RETURN_TYPE(rettype) rettype |
118 # define DECLARE_DOESNT_RETURN_TYPE(rettype,decl) rettype decl \ | 120 # define DECLARE_DOESNT_RETURN_TYPE(rettype,decl) rettype decl \ |
119 __attribute__ ((noreturn)) | 121 __attribute__ ((noreturn)) |
120 # else /* GCC_VERSION < NEED_GCC (2, 5, 0) */ | 122 # else /* GCC_VERSION < NEED_GCC (2, 5, 0) */ |
121 # define DOESNT_RETURN_TYPE(rettype) rettype volatile | 123 # define DOESNT_RETURN_TYPE(rettype) rettype volatile |