This is a bogus warning, the parentheses are fine. They have been added
because precedence in C declarations is often unclear. You can probably
avoid the warning by tuning your compiler arguments.
> In file included from proto.h:210,
> from vim.h:2244,
> from if_ole.cpp:16:
> proto/usercmd.pro:3:76: error: expected ')' before 'compl' token
> 3 | char_u *set_context_in_user_cmdarg(char_u *cmd, char_u *arg, long
> argt, int compl, expand_T *xp, int forceit);
> | ~
> ^~~~~~
> |
> )
> proto/usercmd.pro:3:77: error: expected initializer before 'compl' token
> 3 | char_u *set_context_in_user_cmdarg(char_u *cmd, char_u *arg, long
> argt, int compl, expand_T *xp, int forceit);
> |
> ^~~~~
Don't see anything wrong here.
--
Master: Boy, there is nothing more for you to learn
Student: I didn't know that!
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///