From b8b29ff138c08d8c0c838f771c01ace9b4db719d Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 3 Apr 2014 21:06:30 +0000 Subject: [PATCH] Fixing two compilation warnings for tiny. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4714 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/global.c | 4 ++++ src/text.c | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d1e2acf5..eb4d14f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ Convert #ifdef ENABLE_MULTIBUFFER to #ifndef DISABLE_MULTIBUFFER. * src/{proto.h,files.c,,nano.c,winio.c}, configure.ac: Convert #ifdef NANO_EXTRA to #ifndef DISABLE_EXTRA. + * src/{global.c,text.c}: Fix two compilation warnings for tiny. 2014-04-02 Benno Schulenberg * configure.ac, doc/Makefile.am: Try to build the info documentation diff --git a/src/global.c b/src/global.c index 693ab5dd..85e5ea9c 100644 --- a/src/global.c +++ b/src/global.c @@ -577,7 +577,9 @@ void shortcut_init(bool unjustify) #endif const char *refresh_msg = N_("Refresh"); const char *go_to_line_msg = N_("Go To Line"); +#ifndef DISABLE_SPELLER const char *spell_msg = N_("To Spell"); +#endif #ifdef ENABLE_COLOR const char *lint_msg = N_("To Linter"); const char *prev_lint_msg = N_("Prev Lint Msg"); @@ -615,8 +617,10 @@ void shortcut_init(bool unjustify) N_("Uncut from the cutbuffer into the current line"); const char *nano_cursorpos_msg = N_("Display the position of the cursor"); +#ifndef DISABLE_SPELLER const char *nano_spell_msg = N_("Invoke the spell checker, if available"); +#endif const char *nano_replace_msg = N_("Replace a string or a regular expression"); const char *nano_gotoline_msg = N_("Go to line and column number"); diff --git a/src/text.c b/src/text.c index f7623ef8..796df4c5 100644 --- a/src/text.c +++ b/src/text.c @@ -3190,9 +3190,9 @@ void do_linter(void) tmpcol = curlint->colno; if (tmplint != curlint) { +#ifndef NANO_TINY struct stat lintfileinfo; -#ifndef NANO_TINY new_lint_loop: if (stat(curlint->filename, &lintfileinfo) != -1) { if (openfile->current_stat->st_ino != lintfileinfo.st_ino) {