Commit: patch 9.1.0584: Warning about redeclaring f_id() non-static

4 views
Skip to first unread message

Christian Brabandt

unread,
Jul 17, 2024, 2:13:45 AM7/17/24
to vim...@googlegroups.com
patch 9.1.0584: Warning about redeclaring f_id() non-static

Commit: https://github.com/vim/vim/commit/b3b2beea5e170f1ea39dd9a6a6bc110c36527778
Author: John Marriott <basi...@internode.on.net>
Date: Sun Jul 14 11:12:51 2024 +0200

patch 9.1.0584: Warning about redeclaring f_id() non-static

Problem: Warning about redeclaring f_id() non-static
Solution: Declare f_id() static (John Marriott)

closes: #15257

Signed-off-by: John Marriott <basi...@internode.on.net>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/evalfunc.c b/src/evalfunc.c
index c09242101..a5e4b208c 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -7534,7 +7534,7 @@ f_hostname(typval_T *argvars UNUSED, typval_T *rettv)
* Currently only valid for object/container types.
* Return empty string if not an object.
*/
- void
+ static void
f_id(typval_T *argvars, typval_T *rettv)
{
char numbuf[NUMBUFLEN];
diff --git a/src/version.c b/src/version.c
index 6633b7bea..c0fdd466b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 584,
/**/
583,
/**/
Reply all
Reply to author
Forward
0 new messages