From: Benno Schulenberg Date: Mon, 21 Apr 2014 13:07:18 +0000 (+0000) Subject: Avoiding three compiler warnings with --enable-debug. X-Git-Tag: v2.3.3~136 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=27a52a8defe3a9a796b7c22eab3926bec94c137a;p=nano.git Avoiding three compiler warnings with --enable-debug. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4794 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/ChangeLog b/ChangeLog index f25fefb7..8b10e93c 100644 --- 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 * src/winio.c (get_mouseinput): Properly find also the zeroeth diff --git a/src/rcfile.c b/src/rcfile.c index 9742574c..8c1c2b82 100644 --- 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 index b334fc83..dcfaeff0 100644 --- 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. */