nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 27a52a8defe3a9a796b7c22eab3926bec94c137a
parent 24d9f3121ec86134a1bffd7b428211d94ed99812
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Mon, 21 Apr 2014 13:07:18 +0000

Avoiding three compiler warnings with --enable-debug.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4794 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 2++
Msrc/rcfile.c | 4++--
Msrc/winio.c | 2+-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -10,6 +10,8 @@ better, and allow things to be rebound in the linter menu. * src/nano.h: Delete a large bunch of unused defines. * src/nano.h, src/proto.h: Delete some more unused stuff. + * src/rcfile.c (parse_binding), src/winio.c (get_mouseinput): + Avoid three compiler warnings with --enable-debug. 2014-04-16 Benno Schulenberg <bensberg@justemail.net> * src/winio.c (get_mouseinput): Properly find also the zeroeth diff --git a/src/rcfile.c b/src/rcfile.c @@ -539,8 +539,8 @@ void parse_binding(char *ptr, bool dobind) #ifdef DEBUG if (dobind) - fprintf(stderr, "newsc now address %d, func assigned = %d, menu = %x\n", - &newsc, newsc->scfunc, menu); + fprintf(stderr, "newsc address is now %ld, assigned func = %ld, menu = %x\n", + (long)&newsc, (long)newsc->scfunc, menu); else fprintf(stderr, "unbinding \"%s\" from menu %x\n", keycopy, menu); #endif diff --git a/src/winio.c b/src/winio.c @@ -1715,7 +1715,7 @@ int get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts) j -= 1; } #ifdef DEBUG - fprintf(stderr, "Stopped on func %ld present in menus %x\n", f->scfunc, f->menus); + fprintf(stderr, "Stopped on func %ld present in menus %x\n", (long)f->scfunc, f->menus); #endif /* And put the corresponding key into the keyboard buffer. */