nano-2.3.0-warnings.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. po/Makefile.in.in | 1 +
  2. src/nano.c | 2 +-
  3. 2 files changed, 2 insertions(+), 1 deletions(-)
  4. diff --git a/po/Makefile.in.in b/po/Makefile.in.in
  5. index ada8bb4..f7b2a95 100644
  6. --- a/po/Makefile.in.in
  7. +++ b/po/Makefile.in.in
  8. @@ -20,6 +20,7 @@ VPATH = @srcdir@
  9. prefix = @prefix@
  10. exec_prefix = @exec_prefix@
  11. +datarootdir = @datarootdir@
  12. datadir = @datadir@
  13. localedir = $(datadir)/locale
  14. gettextsrcdir = $(datadir)/gettext/po
  15. diff --git a/src/nano.c b/src/nano.c
  16. index 269ab29..5b605bf 100644
  17. --- a/src/nano.c
  18. +++ b/src/nano.c
  19. @@ -1925,7 +1925,7 @@ precalc_cleanup:
  20. * TRUE. */
  21. void do_output(char *output, size_t output_len, bool allow_cntrls)
  22. {
  23. - size_t current_len, orig_lenpt, i = 0;
  24. + size_t current_len, orig_lenpt = 0, i = 0;
  25. char *char_buf = charalloc(mb_cur_max());
  26. int char_buf_len;
  27. diff --git a/src/search.c b/src/search.c
  28. index ca93098..3451600 100644
  29. --- a/src/search.c
  30. +++ b/src/search.c
  31. @@ -138,7 +138,7 @@ int search_init(bool replacing, bool use_answer)
  32. int i = 0;
  33. char *buf;
  34. sc *s;
  35. - void (*func)(void);
  36. + void (*func)(void) = (void (*)(void))0;
  37. bool meta_key = FALSE, func_key = FALSE;
  38. static char *backupstring = NULL;
  39. /* The search string we'll be using. */