Mercurial > hg > xemacs-beta
comparison src/compiler.h @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | 0be6ff2356c8 |
children | ba4677f54a05 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
26 NOT_REACHED, DOESNT_RETURN, PRINTF_ARGS by Richard Mlynarik, c. 1994. | 26 NOT_REACHED, DOESNT_RETURN, PRINTF_ARGS by Richard Mlynarik, c. 1994. |
27 RETURN_SANS_WARNING by Martin buchholz, 1998 or 1999. | 27 RETURN_SANS_WARNING by Martin buchholz, 1998 or 1999. |
28 Many changes and improvements by Jerry James, 2003. | 28 Many changes and improvements by Jerry James, 2003. |
29 Split out of lisp.h, reorganized, and modernized. | 29 Split out of lisp.h, reorganized, and modernized. |
30 {BEGIN,END}_C_DECLS, NEED_GCC, GCC_VERSION | 30 {BEGIN,END}_C_DECLS, NEED_GCC, GCC_VERSION |
31 ATTRIBUTE_MALLOC, ATTRIBUTE_CONST, ATTRIBUTE_PURE, UNUSED_ARG | 31 ATTRIBUTE_MALLOC, ATTRIBUTE_CONST, ATTRIBUTE_PURE, UNUSED |
32 */ | 32 */ |
33 | 33 |
34 #ifndef INCLUDED_compiler_h | 34 #ifndef INCLUDED_compiler_h |
35 #define INCLUDED_compiler_h | 35 #define INCLUDED_compiler_h |
36 | 36 |
191 # define ATTRIBUTE_CONST | 191 # define ATTRIBUTE_CONST |
192 # define CONST_FUNC const | 192 # define CONST_FUNC const |
193 # endif /* GCC_VERSION >= NEED_GCC (2, 5, 0) */ | 193 # endif /* GCC_VERSION >= NEED_GCC (2, 5, 0) */ |
194 #endif /* ATTRIBUTE_CONST */ | 194 #endif /* ATTRIBUTE_CONST */ |
195 | 195 |
196 /* Unused declarations; g++ doesn't support this. */ | 196 /* Unused declarations; g++ and icc do not support this. */ |
197 #ifndef UNUSED_ARG | 197 #ifndef UNUSED_ARG |
198 # if defined(__GNUC__) && !defined(__cplusplus) | 198 # define UNUSED_ARG(decl) unused_##decl |
199 # define UNUSED_ARG __attribute__ ((unused)) | 199 #endif |
200 # else | 200 #ifndef UNUSED |
201 # define UNUSED_ARG | 201 # if defined(__GNUC__) && !defined(__cplusplus) && !defined(__INTEL_COMPILER) |
202 # endif | 202 # define ATTRIBUTE_UNUSED __attribute__ ((unused)) |
203 #endif /* ATTRIBUTE_UNUSED */ | 203 # else |
204 # define ATTRIBUTE_UNUSED | |
205 # endif | |
206 # define UNUSED(decl) UNUSED_ARG (decl) ATTRIBUTE_UNUSED | |
207 #endif /* UNUSED */ | |
204 | 208 |
205 #ifdef DEBUG_XEMACS | 209 #ifdef DEBUG_XEMACS |
206 # define REGISTER | 210 # define REGISTER |
207 # define register | 211 # define register |
208 #else | 212 #else |