From cd0383d3e80503effd2cf7ca042f5a2c57300c52 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Thu, 26 Aug 2021 02:21:19 +0200 Subject: [PATCH] Temporary vfnprintg() workaround to suppress warnings --- src/gfile/gfile_printg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfile/gfile_printg.c b/src/gfile/gfile_printg.c index 94a16142..577e6246 100644 --- a/src/gfile/gfile_printg.c +++ b/src/gfile/gfile_printg.c @@ -137,7 +137,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) { case 's': filler = ' '; if ((s = va_arg(arg, char *)) == 0) - s = "(null)"; + s = (char*)"(null)"; if (precision == 0) precision = 32767; for (p = s; *p && (--precision >= 0); p++);