diff options
| author | Karoly Lorentey | 2004-03-19 23:19:04 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-03-19 23:19:04 +0000 |
| commit | 7cb805ad23a8d84834b6d9cf8e33966969d25e78 (patch) | |
| tree | a84a18d4b2d91d60bc63df7d5397f6c1023fc046 /src | |
| parent | 6609d8b82e3e546c6a8ac1bf0e2e0f36e7188d40 (diff) | |
| download | emacs-7cb805ad23a8d84834b6d9cf8e33966969d25e78.tar.gz emacs-7cb805ad23a8d84834b6d9cf8e33966969d25e78.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispextern.h | 1 | ||||
| -rw-r--r-- | src/fontset.c | 1 | ||||
| -rw-r--r-- | src/intervals.h | 3 | ||||
| -rw-r--r-- | src/keyboard.c | 4 | ||||
| -rw-r--r-- | src/lisp.h | 8 | ||||
| -rw-r--r-- | src/xdisp.c | 3 | ||||
| -rw-r--r-- | src/xterm.c | 2 |
7 files changed, 10 insertions, 12 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 63c88119c96..96e89a48b05 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -2815,6 +2815,7 @@ extern void calculate_costs P_ ((struct frame *)); | |||
| 2815 | extern void set_tty_color_mode P_ ((struct frame *, Lisp_Object)); | 2815 | extern void set_tty_color_mode P_ ((struct frame *, Lisp_Object)); |
| 2816 | extern void tty_setup_colors P_ ((struct tty_display_info *, int)); | 2816 | extern void tty_setup_colors P_ ((struct tty_display_info *, int)); |
| 2817 | extern struct display *get_named_tty_display P_ ((char *)); | 2817 | extern struct display *get_named_tty_display P_ ((char *)); |
| 2818 | extern Lisp_Object Fframe_tty_type P_ ((Lisp_Object)); | ||
| 2818 | extern struct display *init_initial_display P_ ((void)); | 2819 | extern struct display *init_initial_display P_ ((void)); |
| 2819 | extern struct display *term_init P_ ((char *, char *, int)); | 2820 | extern struct display *term_init P_ ((char *, char *, int)); |
| 2820 | extern void delete_tty P_ ((struct display *)); | 2821 | extern void delete_tty P_ ((struct display *)); |
diff --git a/src/fontset.c b/src/fontset.c index 61e05b68c72..ad9dd3ccd2f 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1085,7 +1085,6 @@ name of a font, REGISTRY is a registry name of a font. */) | |||
| 1085 | Lisp_Object realized; | 1085 | Lisp_Object realized; |
| 1086 | int from, to; | 1086 | int from, to; |
| 1087 | int id; | 1087 | int id; |
| 1088 | Lisp_Object family, registry; | ||
| 1089 | 1088 | ||
| 1090 | fontset = check_fontset_name (name); | 1089 | fontset = check_fontset_name (name); |
| 1091 | 1090 | ||
diff --git a/src/intervals.h b/src/intervals.h index 060731be64e..15e59537377 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -85,7 +85,7 @@ struct interval | |||
| 85 | || STRINGP ((Lisp_Object){(EMACS_INT)(i)})) | 85 | || STRINGP ((Lisp_Object){(EMACS_INT)(i)})) |
| 86 | #endif | 86 | #endif |
| 87 | #define NULL_INTERVAL_P(i) \ | 87 | #define NULL_INTERVAL_P(i) \ |
| 88 | (CHECK (!INT_LISPLIKE (i), "non-interval"), (i) == NULL_INTERVAL) | 88 | ((void)CHECK (!INT_LISPLIKE (i), "non-interval"), (i) == NULL_INTERVAL) |
| 89 | /* old #define NULL_INTERVAL_P(i) ((i) == NULL_INTERVAL || INT_LISPLIKE (i)) */ | 89 | /* old #define NULL_INTERVAL_P(i) ((i) == NULL_INTERVAL || INT_LISPLIKE (i)) */ |
| 90 | 90 | ||
| 91 | /* True if this interval has no right child. */ | 91 | /* True if this interval has no right child. */ |
| @@ -289,6 +289,7 @@ extern INTERVAL balance_intervals P_ ((INTERVAL)); | |||
| 289 | extern INLINE void copy_intervals_to_string P_ ((Lisp_Object, struct buffer *, | 289 | extern INLINE void copy_intervals_to_string P_ ((Lisp_Object, struct buffer *, |
| 290 | int, int)); | 290 | int, int)); |
| 291 | extern INTERVAL copy_intervals P_ ((INTERVAL, int, int)); | 291 | extern INTERVAL copy_intervals P_ ((INTERVAL, int, int)); |
| 292 | extern int compare_string_intervals P_ ((Lisp_Object s1, Lisp_Object s2)); | ||
| 292 | extern Lisp_Object textget P_ ((Lisp_Object, Lisp_Object)); | 293 | extern Lisp_Object textget P_ ((Lisp_Object, Lisp_Object)); |
| 293 | extern Lisp_Object lookup_char_property P_ ((Lisp_Object, Lisp_Object, int)); | 294 | extern Lisp_Object lookup_char_property P_ ((Lisp_Object, Lisp_Object, int)); |
| 294 | extern void move_if_not_intangible P_ ((int)); | 295 | extern void move_if_not_intangible P_ ((int)); |
diff --git a/src/keyboard.c b/src/keyboard.c index a6a30d3d675..dc9bcd7f4f3 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6248,10 +6248,10 @@ modify_event_symbol (symbol_num, modifiers, symbol_kind, name_alist_or_stem, | |||
| 6248 | char *buf = (char *) alloca (len + 50); | 6248 | char *buf = (char *) alloca (len + 50); |
| 6249 | if (sizeof (int) == sizeof (EMACS_INT)) | 6249 | if (sizeof (int) == sizeof (EMACS_INT)) |
| 6250 | sprintf (buf, "%s-%d", SDATA (name_alist_or_stem), | 6250 | sprintf (buf, "%s-%d", SDATA (name_alist_or_stem), |
| 6251 | XINT (symbol_int) + 1); | 6251 | (int)XINT (symbol_int) + 1); |
| 6252 | else if (sizeof (long) == sizeof (EMACS_INT)) | 6252 | else if (sizeof (long) == sizeof (EMACS_INT)) |
| 6253 | sprintf (buf, "%s-%ld", SDATA (name_alist_or_stem), | 6253 | sprintf (buf, "%s-%ld", SDATA (name_alist_or_stem), |
| 6254 | XINT (symbol_int) + 1); | 6254 | (long)XINT (symbol_int) + 1); |
| 6255 | value = intern (buf); | 6255 | value = intern (buf); |
| 6256 | } | 6256 | } |
| 6257 | else if (name_table != 0 && name_table[symbol_num]) | 6257 | else if (name_table != 0 && name_table[symbol_num]) |
diff --git a/src/lisp.h b/src/lisp.h index 3b4a1103b25..cd873076602 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -63,14 +63,14 @@ 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 | ||
diff --git a/src/xdisp.c b/src/xdisp.c index 749739a8bca..796c7d06ce8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20213,7 +20213,6 @@ Returns the alist element for the first matching AREA in MAP. */) | |||
| 20213 | Lisp_Object map; | 20213 | Lisp_Object map; |
| 20214 | Lisp_Object x, y; | 20214 | Lisp_Object x, y; |
| 20215 | { | 20215 | { |
| 20216 | int ix, iy; | ||
| 20217 | if (NILP (map)) | 20216 | if (NILP (map)) |
| 20218 | return Qnil; | 20217 | return Qnil; |
| 20219 | 20218 | ||
| @@ -20279,7 +20278,7 @@ note_mode_line_or_margin_highlight (w, x, y, area) | |||
| 20279 | Lisp_Object pointer = Qnil; | 20278 | Lisp_Object pointer = Qnil; |
| 20280 | int charpos, dx, dy, width, height; | 20279 | int charpos, dx, dy, width, height; |
| 20281 | Lisp_Object string, object = Qnil; | 20280 | Lisp_Object string, object = Qnil; |
| 20282 | Lisp_Object pos, help, image; | 20281 | Lisp_Object pos, help; |
| 20283 | 20282 | ||
| 20284 | if (area == ON_MODE_LINE || area == ON_HEADER_LINE) | 20283 | if (area == ON_MODE_LINE || area == ON_HEADER_LINE) |
| 20285 | string = mode_line_string (w, area, &x, &y, &charpos, | 20284 | string = mode_line_string (w, area, &x, &y, &charpos, |
diff --git a/src/xterm.c b/src/xterm.c index feefdf24e81..86feb9ccf57 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -3224,7 +3224,6 @@ x_detect_focus_change (dpyinfo, event, bufp) | |||
| 3224 | struct input_event *bufp; | 3224 | struct input_event *bufp; |
| 3225 | { | 3225 | { |
| 3226 | struct frame *frame; | 3226 | struct frame *frame; |
| 3227 | int nr_events = 0; | ||
| 3228 | 3227 | ||
| 3229 | frame = x_any_window_to_frame (dpyinfo, event->xany.window); | 3228 | frame = x_any_window_to_frame (dpyinfo, event->xany.window); |
| 3230 | if (! frame) | 3229 | if (! frame) |
| @@ -8148,7 +8147,6 @@ void | |||
| 8148 | x_calc_absolute_position (f) | 8147 | x_calc_absolute_position (f) |
| 8149 | struct frame *f; | 8148 | struct frame *f; |
| 8150 | { | 8149 | { |
| 8151 | Window child; | ||
| 8152 | int win_x = 0, win_y = 0; | 8150 | int win_x = 0, win_y = 0; |
| 8153 | int flags = f->size_hint_flags; | 8151 | int flags = f->size_hint_flags; |
| 8154 | 8152 | ||