]> granicus.if.org Git - vim/commitdiff
patch 8.2.3447: a couple of declarations are not ANSI C v8.2.3447
authorYegappan Lakshmanan <yegappan@yahoo.com>
Sat, 18 Sep 2021 10:15:08 +0000 (12:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 18 Sep 2021 10:15:08 +0000 (12:15 +0200)
Problem:    A couple of declarations are not ANSI C.
Solution:   Put argument type inside (). (Yegappan Lakshmanan, closes #8890)

src/os_unix.h
src/version.c

index 83fe66d37ff4460c5d6e1778a3805d075c7b422c..c3a7fec19a1a8a337d561128a7644d6d90cd88ca 100644 (file)
 #ifdef SIGHASARG
 # ifdef SIGHAS3ARGS
 #  define SIGPROTOARG  (int, int, struct sigcontext *)
-#  define SIGDEFARG(s) (s, sig2, scont) int s, sig2; struct sigcontext *scont;
+#  define SIGDEFARG(s) (int s, int sig2, struct sigcontext *scont)
 #  define SIGDUMMYARG  0, 0, (struct sigcontext *)0
 # else
 #  define SIGPROTOARG  (int)
-#  define SIGDEFARG(s) (s) int s UNUSED;
+#  define SIGDEFARG(s) (int s UNUSED)
 #  define SIGDUMMYARG  0
 # endif
 #else
index 21a697d283c888fe498f60742bbb1148c8907366..9cd1495ace72e43309e8d104609d95f897308c78 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3447,
 /**/
     3446,
 /**/