]> git.wh0rd.org Git - nano.git/commitdiff
Fixing warning with --enable-mouse and tiny.
authorBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 16:06:27 +0000 (16:06 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Fri, 4 Apr 2014 16:06:27 +0000 (16:06 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/nano.c

index 2983c6c61058dec9073ebb0a97e391f210ebe974..832b0f94c2ec1f4a506d7164c571a38732b9917b 100644 (file)
--- 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.
index e9cf866544c1d55578c107c5940e9802a66809a1..00ccbf58f43c715aede9636e91446ecca229cde0 100644 (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);