53 lines
1.4 KiB
Diff
53 lines
1.4 KiB
Diff
From 8d618f769b1e66a26e7b790e4e94b2c3dca68d31 Mon Sep 17 00:00:00 2001
|
|
From: Kamil Dudka <kdudka@redhat.com>
|
|
Date: Tue, 26 Mar 2013 16:20:27 +0100
|
|
Subject: [PATCH] fix compile-time warnings in nano-2.3.2
|
|
|
|
---
|
|
po/Makefile.in.in | 1 +
|
|
src/nano.c | 2 +-
|
|
src/search.c | 2 +-
|
|
3 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
|
|
index ada8bb4..f7b2a95 100644
|
|
--- a/po/Makefile.in.in
|
|
+++ b/po/Makefile.in.in
|
|
@@ -20,6 +20,7 @@ VPATH = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
+datarootdir = @datarootdir@
|
|
datadir = @datadir@
|
|
localedir = $(datadir)/locale
|
|
gettextsrcdir = $(datadir)/gettext/po
|
|
diff --git a/src/nano.c b/src/nano.c
|
|
index 9d2332d..c315768 100644
|
|
--- a/src/nano.c
|
|
+++ b/src/nano.c
|
|
@@ -1934,7 +1934,7 @@ precalc_cleanup:
|
|
* TRUE. */
|
|
void do_output(char *output, size_t output_len, bool allow_cntrls)
|
|
{
|
|
- size_t current_len, orig_lenpt, i = 0;
|
|
+ size_t current_len, orig_lenpt = 0, i = 0;
|
|
char *char_buf = charalloc(mb_cur_max());
|
|
int char_buf_len;
|
|
|
|
diff --git a/src/search.c b/src/search.c
|
|
index 74bfb07..77b2097 100644
|
|
--- a/src/search.c
|
|
+++ b/src/search.c
|
|
@@ -219,7 +219,7 @@ int search_init(bool replacing, bool use_answer)
|
|
statusbar(_("Cancelled"));
|
|
return -1;
|
|
} else {
|
|
- void (*func)(void);
|
|
+ void (*func)(void) = (void (*)(void)) 0;
|
|
|
|
for (s = sclist; s != NULL; s = s->next)
|
|
if ((s->menu & currmenu) && i == s->seq) {
|
|
--
|
|
1.7.1
|
|
|