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. */