comparison src/compiler.h @ 5046:d4f666cda5e6

some random fixups -------------------- ChangeLog entries follow: -------------------- man/ChangeLog addition: 2010-02-20 Ben Wing <ben@xemacs.org> * internals/internals.texi (Intro to Window and Frame Geometry): Shrink diagram to fit when offset by five spaces as a result of quoting. src/ChangeLog addition: 2010-02-20 Ben Wing <ben@xemacs.org> * syswindows.h: Add table about GNU Emacs -> XEmacs Windows constants from the internals manual. * frame.c: Shrink size of diagram consistent with internals manual. * alloc.c: * compiler.h: * console.c: * events.c: * gc.c (gc_stat_start_new_gc): * gc.c (gc_stat_resume_gc): * gc.c (kkcc_marking): * gc.c (gc_1): * gc.c (gc): * objects-tty.c: * redisplay-msw.c: * redisplay-msw.c (mswindows_clear_region): * syntax.c: * syntax.c (ST_COMMENT_STYLE): * sysdep.c: Fix various compiler warnings.
author Ben Wing <ben@xemacs.org>
date Sat, 20 Feb 2010 03:24:08 -0600
parents cbe181529c34
children 308d34e9f07d
comparison
equal deleted inserted replaced
5045:c3cc3fa503a2 5046:d4f666cda5e6
1 /* Compiler-specific definitions for XEmacs. 1 /* Compiler-specific definitions for XEmacs.
2 Copyright (C) 1998-1999, 2003 Free Software Foundation, Inc. 2 Copyright (C) 1998-1999, 2003 Free Software Foundation, Inc.
3 Copyright (C) 1994 Richard Mlynarik. 3 Copyright (C) 1994 Richard Mlynarik.
4 Copyright (C) 1995, 1996, 2000-2004 Ben Wing. 4 Copyright (C) 1995, 1996, 2000-2004, 2010 Ben Wing.
5 5
6 This file is part of XEmacs. 6 This file is part of XEmacs.
7 7
8 XEmacs is free software; you can redistribute it and/or modify it 8 XEmacs is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the 9 under the terms of the GNU General Public License as published by the
231 # define ATTRIBUTE_UNUSED __attribute__ ((unused)) 231 # define ATTRIBUTE_UNUSED __attribute__ ((unused))
232 # else 232 # else
233 # define ATTRIBUTE_UNUSED 233 # define ATTRIBUTE_UNUSED
234 # endif 234 # endif
235 # define UNUSED(decl) UNUSED_ARG (decl) ATTRIBUTE_UNUSED 235 # define UNUSED(decl) UNUSED_ARG (decl) ATTRIBUTE_UNUSED
236 # ifdef MULE
237 # define USED_IF_MULE(decl) decl
238 # else
239 # define USED_IF_MULE(decl) UNUSED (decl)
240 # endif
241 # ifdef HAVE_XFT
242 # define USED_IF_XFT(decl) decl
243 # else
244 # define USED_IF_XFT(decl) UNUSED (decl)
245 # endif
246 # ifdef HAVE_SCROLLBARS
247 # define USED_IF_SCROLLBARS(decl) decl
248 # else
249 # define USED_IF_SCROLLBARS(decl) UNUSED (decl)
250 # endif
251 #endif /* UNUSED */ 236 #endif /* UNUSED */
237
238 /* Various macros for params/variables used or unused depending on
239 config flags. */
240
241 #ifdef MULE
242 # define USED_IF_MULE(decl) decl
243 #else
244 # define USED_IF_MULE(decl) UNUSED (decl)
245 #endif
246 #ifdef HAVE_XFT
247 # define USED_IF_XFT(decl) decl
248 #else
249 # define USED_IF_XFT(decl) UNUSED (decl)
250 #endif
251 #ifdef HAVE_SCROLLBARS
252 # define USED_IF_SCROLLBARS(decl) decl
253 #else
254 # define USED_IF_SCROLLBARS(decl) UNUSED (decl)
255 #endif
256 #ifdef NEW_GC
257 # define USED_IF_NEW_GC(decl) decl
258 # define UNUSED_IF_NEW_GC(decl) UNUSED (decl)
259 #else
260 # define USED_IF_NEW_GC(decl) UNUSED (decl)
261 # define UNUSED_IF_NEW_GC(decl) decl
262 #endif
263 #ifdef HAVE_TTY
264 #define USED_IF_TTY(decl) decl
265 #else
266 #define USED_IF_TTY(decl) UNUSED (decl)
267 #endif
268 #ifdef HAVE_TOOLBARS
269 #define USED_IF_TOOLBARS(decl) decl
270 #else
271 #define USED_IF_TOOLBARS(decl) UNUSED (decl)
272 #endif
252 273
253 /* Declaration that variable or expression X is "used" to defeat 274 /* Declaration that variable or expression X is "used" to defeat
254 "unused variable" warnings. DON'T DO THIS FOR PARAMETERS IF IT ALL 275 "unused variable" warnings. DON'T DO THIS FOR PARAMETERS IF IT ALL
255 POSSIBLE. Use an UNUSED() or USED_IF_*() declaration on the parameter 276 POSSIBLE. Use an UNUSED() or USED_IF_*() declaration on the parameter
256 instead. Don't do this for unused local variables that should really 277 instead. Don't do this for unused local variables that should really