From f8ec08a9287d9091f7ed23481c66d5804687fe53 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 2 Jan 2023 10:48:18 +0100 Subject: [PATCH] tweaks: avoid warnings when compiling with -Wpedantic --- src/nano.c | 2 +- src/prototypes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nano.c b/src/nano.c index f9978941..308a47e1 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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. */ -bool changes_something(const void *f) +bool changes_something(functionptrtype f) { 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 || diff --git a/src/prototypes.h b/src/prototypes.h index 530c4b9f..df46e979 100644 --- a/src/prototypes.h +++ b/src/prototypes.h @@ -427,7 +427,7 @@ void terminal_init(void); void confirm_margin(void); #endif void unbound_key(int code); -bool changes_something(const void *f); +bool changes_something(functionptrtype f); void inject(char *burst, size_t count); /* Most functions in prompt.c. */