From db1105cd41fb9086b9cb45c79f654c9d94fb91a3 Mon Sep 17 00:00:00 2001 From: Alexander Naumov Date: Thu, 22 Jun 2023 22:07:13 +0200 Subject: [PATCH] fix -Wdeprecated-non-prototype Passing arguments to 'tparm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] --- src/term.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.sh b/src/term.sh index cae53ce..7f87172 100644 --- a/src/term.sh +++ b/src/term.sh @@ -27,7 +27,7 @@ extern int tgetnum(char *); extern char *tgetstr(char *, char **); extern char *tgoto(const char *, int, int); extern int tputs(const char *, int, int (*)(int)); -extern char *tparm(); +extern char *tparm(char *str, ...); struct term {