Mercurial > emacs
comparison src/lisp.h @ 83080:d4d5e54871ff
Trivial cleanups to get rid of GCC warnings.
src/fontset.c (Fset_fontset_font): Removed unused variables.
src/fringe.c (Ffringe_bitmaps_at_pos): Ditto.
src/xdisp.c (Flookup_image_map, note_mode_line_or_margin_highlight): Ditto.
src/xterm.c (x_detect_focus_change, x_calc_absolute_position): Ditto.
src/intervals.h (compare_string_intervals): New declaration.
src/intervals.h (NULL_INTERVAL_P): Shut up GCC warnings by casting the
left side of the comma expression to void.
src/lisp.h (CHECK): Ditto.
src/keyboard.c (modify_event_symbol): Shut up GCC warning about format
template type mismatch.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-120
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Fri, 19 Mar 2004 23:19:04 +0000 |
parents | fac24544c283 |
children | 108bb5537c12 |
comparison
equal
deleted
inserted
replaced
83079:5f17f5c40152 | 83080:d4d5e54871ff |
---|---|
61 extern int suppress_checking; | 61 extern int suppress_checking; |
62 extern void die P_((const char *, const char *, int)); | 62 extern void die P_((const char *, const char *, int)); |
63 | 63 |
64 #ifdef ENABLE_CHECKING | 64 #ifdef ENABLE_CHECKING |
65 | 65 |
66 #define CHECK(check,msg) (((check) || suppress_checking \ | 66 #define CHECK(check,msg) ((void)((check) || suppress_checking \ |
67 ? (void) 0 \ | 67 ? (void) 0 \ |
68 : die ((msg), __FILE__, __LINE__)), \ | 68 : die ((msg), __FILE__, __LINE__)), \ |
69 0) | 69 0) |
70 #else | 70 #else |
71 | 71 |
72 /* Produce same side effects and result, but don't complain. */ | 72 /* Produce same side effects and result, but don't complain. */ |
73 #define CHECK(check,msg) ((check),0) | 73 #define CHECK(check,msg) ((void)(check),0) |
74 | 74 |
75 #endif | 75 #endif |
76 | 76 |
77 /* Used for making sure that Emacs is compilable in all | 77 /* Used for making sure that Emacs is compilable in all |
78 configurations. */ | 78 configurations. */ |