diff options
| author | Paul Eggert | 2014-09-10 17:48:57 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-09-10 17:48:57 -0700 |
| commit | b3ed13e84d591eeb2f0dde2e7c2558e7abcc66ca (patch) | |
| tree | 747ac2d7805b50b1c83be62888a367b2f13061e2 /src/window.c | |
| parent | fe252976a18bf7bb66009fa80c1c6f02b124404f (diff) | |
| download | emacs-b3ed13e84d591eeb2f0dde2e7c2558e7abcc66ca.tar.gz emacs-b3ed13e84d591eeb2f0dde2e7c2558e7abcc66ca.zip | |
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.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index 341e3e3dcd2..8736fe13c3b 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -7376,9 +7376,7 @@ set_window_scroll_bars (struct window *w, Lisp_Object width, | |||
| 7376 | } | 7376 | } |
| 7377 | } | 7377 | } |
| 7378 | 7378 | ||
| 7379 | #if (defined (HAVE_WINDOW_SYSTEM) \ | 7379 | #if USE_HORIZONTAL_SCROLL_BARS |
| 7380 | && ((defined (USE_TOOLKIT_SCROLL_BARS) && !defined (HAVE_NS)) \ | ||
| 7381 | || defined (HAVE_NTGUI))) | ||
| 7382 | { | 7380 | { |
| 7383 | int iheight = (NILP (height) ? -1 : (CHECK_NATNUM (height), XINT (height))); | 7381 | int iheight = (NILP (height) ? -1 : (CHECK_NATNUM (height), XINT (height))); |
| 7384 | 7382 | ||