Avoiding three compiler warnings with --enable-debug.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4794 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-04-21 13:07:18 +00:00
parent 24d9f3121e
commit 27a52a8def
3 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

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