Fixing warning with --enable-mouse and tiny.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-04 16:06:27 +00:00
parent 36c87bcfd5
commit 8611e4785f
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@
* src/{proto.h,search.c}: Fix compilation with --enable-browser.
* src/global.c (shortcut_init): Fix warnings with --enable-help.
* src/text.c (do_justify): Fix compilation with --enable-justify.
* src/nano.c (do_mouse): Fix warning with --enable-mouse.
2014-04-03 Benno Schulenberg <bensberg@justemail.net>
* configure.ac: Remove unused '*_support' variables.

View File

@ -1729,7 +1729,9 @@ int do_mouse(void)
/* Did they click on the line with the cursor? If they
* clicked on the cursor, we set the mark. */
filestruct *current_save = openfile->current;
#ifndef NANO_TINY
size_t current_x_save = openfile->current_x;
#endif
size_t pww_save = openfile->placewewant;
sameline = (mouse_y == openfile->current_y);