> 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 -- 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 ///