aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2016-03-08 07:34:42 -0800
committerPaul Eggert2016-03-08 07:35:17 -0800
commite0400b72a24d67b53f71c8b97915cae599e36c37 (patch)
tree0bbb56a705dc5c9fdc3e2a960e5a9c6272e126eb /src
parent80864c2a04597d31ba453c9af69d35b15c4e1e24 (diff)
downloademacs-e0400b72a24d67b53f71c8b97915cae599e36c37.tar.gz
emacs-e0400b72a24d67b53f71c8b97915cae599e36c37.zip
Pacify --enable-gcc-warnings
* src/xfns.c (x_create_tip_frame): Omit unused local. (Fx_show_tip): Don’t jump over auto initialization.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c
index c1ce1b73a21..596b67c1608 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -5354,7 +5354,6 @@ x_create_tip_frame (struct x_display_info *dpyinfo, Lisp_Object parms)
5354 int width, height; 5354 int width, height;
5355 ptrdiff_t count = SPECPDL_INDEX (); 5355 ptrdiff_t count = SPECPDL_INDEX ();
5356 bool face_change_before = face_change; 5356 bool face_change_before = face_change;
5357 Lisp_Object buffer;
5358 int x_width = 0, x_height = 0; 5357 int x_width = 0, x_height = 0;
5359 5358
5360 if (!dpyinfo->terminal->name) 5359 if (!dpyinfo->terminal->name)
@@ -5873,6 +5872,7 @@ Text larger than the specified size is clipped. */)
5873 ptrdiff_t count = SPECPDL_INDEX (); 5872 ptrdiff_t count = SPECPDL_INDEX ();
5874 ptrdiff_t count_1; 5873 ptrdiff_t count_1;
5875 Lisp_Object window, size; 5874 Lisp_Object window, size;
5875 AUTO_STRING (tip, " *tip*");
5876 5876
5877 specbind (Qinhibit_redisplay, Qt); 5877 specbind (Qinhibit_redisplay, Qt);
5878 5878
@@ -6036,7 +6036,6 @@ Text larger than the specified size is clipped. */)
6036 6036
6037 tip_f = XFRAME (tip_frame); 6037 tip_f = XFRAME (tip_frame);
6038 window = FRAME_ROOT_WINDOW (tip_f); 6038 window = FRAME_ROOT_WINDOW (tip_f);
6039 AUTO_STRING (tip, " *tip*");
6040 set_window_buffer (window, Fget_buffer_create (tip), false, false); 6039 set_window_buffer (window, Fget_buffer_create (tip), false, false);
6041 w = XWINDOW (window); 6040 w = XWINDOW (window);
6042 w->pseudo_window_p = true; 6041 w->pseudo_window_p = true;