From 8611e4785ffd82313007428001d2e3e1667e07fb Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 4 Apr 2014 16:06:27 +0000 Subject: [PATCH] Fixing warning with --enable-mouse and tiny. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/nano.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2983c6c6..832b0f94 100644 --- 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 * configure.ac: Remove unused '*_support' variables. diff --git a/src/nano.c b/src/nano.c index e9cf8665..00ccbf58 100644 --- 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);