From 5b0efd8db2f03a48ca4acbd17b68a4d8771b3e7f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Fri, 10 Mar 2023 18:02:02 +0000 Subject: [PATCH] Add missing 'static' on dputs(). This fixes a build failure due to -Wmissing-prototypes if you build with -DDEBUGGING. --- gtk.c | 2 +- windows.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk.c b/gtk.c index eb686c8..eab6980 100644 --- a/gtk.c +++ b/gtk.c @@ -88,7 +88,7 @@ #ifdef DEBUGGING static FILE *debug_fp = NULL; -void dputs(const char *buf) +static void dputs(const char *buf) { if (!debug_fp) { debug_fp = fopen("debug.log", "w"); diff --git a/windows.c b/windows.c index e4942f4..7287478 100644 --- a/windows.c +++ b/windows.c @@ -73,7 +73,7 @@ static FILE *debug_fp = NULL; static HANDLE debug_hdl = INVALID_HANDLE_VALUE; static int debug_got_console = 0; -void dputs(char *buf) +static void dputs(char *buf) { /*DWORD dw;