diff --git a/ChangeLog b/ChangeLog index 76be30bd31da69834ca215a46543cd70466cc9b9..1fa6600e879cd94206214243211a430f94e1a847 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-05-26 Benno Schulenberg <bensberg@justemail.net> + * src/cut.c (cut_line): Fix compilation with --enable-tiny. + * src/text.c (do_linter): Avoid a warning with --enable-tiny. + 2014-05-25 Benno Schulenberg <bensberg@justemail.net> * src/global.c: Cut down on the size of tiny nano, by not compiling the function strtosc() when --disable-nanorc is given or implied. diff --git a/src/cut.c b/src/cut.c index e766d92a92856a7b33084aa625f8b5a69c691e2f..70dbde938fd63eb0148c1fb826addbd42b62bcf3 100644 --- a/src/cut.c +++ b/src/cut.c @@ -44,8 +44,10 @@ void cutbuffer_reset(void) * current line. */ void cut_line(void) { +#ifndef NANO_TINY if (!openfile->mark_begin) openfile->mark_begin = openfile->current; +#endif if (openfile->current != openfile->filebot) move_to_filestruct(&cutbuffer, &cutbottom, openfile->current, 0, diff --git a/src/text.c b/src/text.c index b49c29f0b4430f5e5cdd54297a82573b2418d9b3..35dcfcf99dea416c598933bab0cfd078961c3e9d 100644 --- a/src/text.c +++ b/src/text.c @@ -3297,7 +3297,9 @@ void do_linter(void) } } blank_statusbar(); +#ifndef NANO_TINY free_lints_and_return: +#endif for (tmplint = lints; tmplint != NULL; tmplint = tmplint->next) { free(tmplint->msg); free(tmplint->filename);