tweaks: avoid warnings when compiling with -Wpedantic
This commit is contained in:
parent
f09e6c183e
commit
f8ec08a928
@ -1388,7 +1388,7 @@ bool wanted_to_move(void (*func)(void))
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Return TRUE when the given function makes a change -- no good for view mode. */
|
/* Return TRUE when the given function makes a change -- no good for view mode. */
|
||||||
bool changes_something(const void *f)
|
bool changes_something(functionptrtype f)
|
||||||
{
|
{
|
||||||
return (f == do_savefile || f == do_writeout || f == do_enter || f == do_tab ||
|
return (f == do_savefile || f == do_writeout || f == do_enter || f == do_tab ||
|
||||||
f == do_delete || f == do_backspace || f == cut_text || f == paste_text ||
|
f == do_delete || f == do_backspace || f == cut_text || f == paste_text ||
|
||||||
|
|||||||
@ -427,7 +427,7 @@ void terminal_init(void);
|
|||||||
void confirm_margin(void);
|
void confirm_margin(void);
|
||||||
#endif
|
#endif
|
||||||
void unbound_key(int code);
|
void unbound_key(int code);
|
||||||
bool changes_something(const void *f);
|
bool changes_something(functionptrtype f);
|
||||||
void inject(char *burst, size_t count);
|
void inject(char *burst, size_t count);
|
||||||
|
|
||||||
/* Most functions in prompt.c. */
|
/* Most functions in prompt.c. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user