commit 8611e4785ffd82313007428001d2e3e1667e07fb
parent 36c87bcfd5f31d394b7ff368773073136aa8d7e8
Author: Benno Schulenberg <bensberg@justemail.net>
Date: Fri, 4 Apr 2014 16:06:27 +0000
Fixing warning with --enable-mouse and tiny.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -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.
diff --git a/src/nano.c b/src/nano.c
@@ -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);