Port to OpenBSD 5.1.
commit831e37c7731675c1cc40ceac4589e021154ecb23
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Oct 2012 21:30:51 +0000 (20 14:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 20 Oct 2012 21:30:51 +0000 (20 14:30 -0700)
tree512d0b0754f1ace2167d15b5073baee65e96b7a7
parente11e63ed6771be878eb648c37fbab538b6a665fd
Port to OpenBSD 5.1.

* frame.c (Fmouse_position, Fmouse_pixel_position):
* xdisp.c (produce_stretch_glyph):
Declare local vars only when they're needed.
This is clearer and avoids a warning on OpenBSD about unused vars.
* frame.h (FRAME_WINDOW_P): Always evaluate its argument.
This is safer, and avoids OpenBSD warnings about unused vars.
* keyboard.c (record_menu_key): Remove unnecessary decl.
(poll_timer): Define only if POLL_FOR_INPUT is defined.
* unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined,
as our definition clashes with OpenBSD's.
* xfaces.c (load_face_colors, check_lface_attrs)
(get_lface_attributes_no_remap, get_lface_attributes)
(lface_fully_specified_p, x_supports_face_attributes_p)
(tty_supports_face_attributes_p, face_fontset, realize_face)
(realize_x_face, realize_tty_face):
Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not
merely Lisp_Object *.  This is more informative and avoids
a warning on OpenBSD about accessing beyond an object's size.
src/ChangeLog
src/frame.c
src/frame.h
src/keyboard.c
src/unexelf.c
src/xdisp.c
src/xfaces.c