]> code.delx.au - gnu-emacs/commit
Pacify --enable-gcc-warnings when no window system is used.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Sep 2014 00:48:57 +0000 (17:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 11 Sep 2014 00:48:57 +0000 (17:48 -0700)
commitb3ed13e84d591eeb2f0dde2e7c2558e7abcc66ca
tree747ac2d7805b50b1c83be62888a367b2f13061e2
parentfe252976a18bf7bb66009fa80c1c6f02b124404f
Pacify --enable-gcc-warnings when no window system is used.

These warnings found that subscript error, so they seem worthwhile.
* composite.c (char_composable_p): Simplify a bit.
* frame.c (x_set_frame_parameters): Add an IF_LINT.
* frame.c (x_set_horizontal_scroll_bars, x_set_scroll_bar_height):
* frame.h (FRAME_HAS_HORIZONTAL_SCROLL_BARS):
* window.c (set_window_scroll_bars):
Use USE_HORIZONTAL_SCROLL_BARS for simplicity.
* frame.h [! USE_HORIZONTAL_SCROLL_BARS]:
Ignore -Wsuggest-attribute=const.
* window.h (USE_HORIZONTAL_SCROLL_BARS): New macro.
(WINDOW_HAS_HORIZONTAL_SCROLL_BAR): Use it.
src/ChangeLog
src/composite.c
src/frame.c
src/frame.h
src/window.c
src/window.h