> Got this error trying to build Gvim above version :
> 
> 
> *Error*
> In file included from vim.h:434,
>                  from if_ole.cpp:16:
> termdefs.h:127:16: warning: unnecessary parentheses in declaration of 
> 'term_strings' [-Wparentheses]
>   127 | extern char_u *(term_strings[]);    // current terminal strings
>       |                ^
> In file included from vim.h:1878,
>                  from if_ole.cpp:16:
> structs.h:2785:17: warning: unnecessary parentheses in declaration of 
> 'b_maphash' [-Wparentheses]
>  2785 |     mapblock_T *(b_maphash[256]);
>       |                 ^
> structs.h:3239:16: warning: unnecessary parentheses in declaration of 
> 'tp_diffbuf' [-Wparentheses]
>  3239 |     buf_T     *(tp_diffbuf[DB_COUNT]);
>       |                ^
> structs.h:3243:18: warning: unnecessary parentheses in declaration of 
> 'tp_snapshot' [-Wparentheses]
>  3243 |     frame_T     *(tp_snapshot[SNAP_COUNT]);  // window layout 
> snapshots
>       |                  ^

Those are bogus warnings.  The parentheses are perfectly fine.  You can
try to find a flag for the compiler to disable the warning.


> In file included from proto.h:216,
>                  from vim.h:2238,
>                  from if_ole.cpp:16:
> vim9.h:432:13: *error: expected unqualified-id before 'try'*
>   432 |  try_T      try;
>       |             ^~~
> make: *** [Make_cyg_ming.mak:1251: gobji686/if_ole.o] Error 1

I suppose this is because in C++ "try" is a keyword?  I'll rename it.

-- 
>From "know your smileys":
 :~)    A man with a tape recorder up his nose

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20211221094104.0CF5E1C0DCA%40moolenaar.net.

Raspunde prin e-mail lui