diff options
| author | Jan D | 2010-08-06 13:28:59 +0200 |
|---|---|---|
| committer | Jan D | 2010-08-06 13:28:59 +0200 |
| commit | 7908fb6097f81219d3f42a68d4d8d43583109b14 (patch) | |
| tree | 42ac7527868ead4844b9ed70fa568e1432c28afb /src | |
| parent | 4094bf3679e9b64b2c4018edd1ba7e3d63f8d862 (diff) | |
| download | emacs-7908fb6097f81219d3f42a68d4d8d43583109b14.tar.gz emacs-7908fb6097f81219d3f42a68d4d8d43583109b14.zip | |
More undeclared function fixes and add -Wimplicit-function-declaration.
If a function returns Lisp_Object it must be declared, otherwise on a 64-bit
system, it will return just 32 bits (int).
* configure.in: Use -Wimplicit-function-declaration if compiler supports it.
* src/keyboard.h (poll_for_input_1): Unconditionally declare.
* src/xterm.h (x_get_focus_frame): Declare.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/keyboard.h | 2 | ||||
| -rw-r--r-- | src/xterm.h | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bef939adb4f..835fe921019 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-08-06 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2010-08-06 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * xterm.h (x_get_focus_frame): Declare. | ||
| 4 | |||
| 5 | * keyboard.h (poll_for_input_1): Unconditionally declare. | ||
| 6 | |||
| 3 | * nsterm.h (x_set_menu_bar_lines): Declare. | 7 | * nsterm.h (x_set_menu_bar_lines): Declare. |
| 4 | 8 | ||
| 5 | * window.c: Don't include menu.h, it depends on lots of other .h-files. | 9 | * window.c: Don't include menu.h, it depends on lots of other .h-files. |
diff --git a/src/keyboard.h b/src/keyboard.h index 48d7f1468d9..9ef558fc4e1 100644 --- a/src/keyboard.h +++ b/src/keyboard.h | |||
| @@ -515,9 +515,7 @@ extern void kbd_buffer_store_event (struct input_event *); | |||
| 515 | extern void kbd_buffer_store_event_hold (struct input_event *, | 515 | extern void kbd_buffer_store_event_hold (struct input_event *, |
| 516 | struct input_event *); | 516 | struct input_event *); |
| 517 | extern void kbd_buffer_unget_event (struct input_event *); | 517 | extern void kbd_buffer_unget_event (struct input_event *); |
| 518 | #ifdef POLL_FOR_INPUT | ||
| 519 | extern void poll_for_input_1 (void); | 518 | extern void poll_for_input_1 (void); |
| 520 | #endif | ||
| 521 | extern void show_help_echo (Lisp_Object, Lisp_Object, Lisp_Object, | 519 | extern void show_help_echo (Lisp_Object, Lisp_Object, Lisp_Object, |
| 522 | Lisp_Object, int); | 520 | Lisp_Object, int); |
| 523 | extern void gen_help_event (Lisp_Object, Lisp_Object, Lisp_Object, | 521 | extern void gen_help_event (Lisp_Object, Lisp_Object, Lisp_Object, |
diff --git a/src/xterm.h b/src/xterm.h index 7a35466cb79..69c8ec22a73 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1058,6 +1058,7 @@ extern Lisp_Object x_property_data_to_lisp (struct frame *, | |||
| 1058 | /* Defined in xfns.c */ | 1058 | /* Defined in xfns.c */ |
| 1059 | 1059 | ||
| 1060 | extern struct x_display_info * check_x_display_info (Lisp_Object frame); | 1060 | extern struct x_display_info * check_x_display_info (Lisp_Object frame); |
| 1061 | extern Lisp_Object x_get_focus_frame (struct frame *); | ||
| 1061 | 1062 | ||
| 1062 | #ifdef USE_GTK | 1063 | #ifdef USE_GTK |
| 1063 | extern int xg_set_icon (struct frame *, Lisp_Object); | 1064 | extern int xg_set_icon (struct frame *, Lisp_Object); |