John Marriott wrote:

> On 17-Apr.-2018 00:38, Mike Williams wrote:
> > Hi
> >
> > On 16/04/2018 14:16, Bram Moolenaar wrote:
> >>
> >> I wrote:
> >>
> >>> Patch 8.0.1723
> >>> Problem:    Using one item array size declaration is misleading.
> >>> Solution:   Instead of using "[1]" and actually using a larger 
> >>> array, use
> >>>              "[]".  This is to verify that this C99 feature works 
> >>> for all
> >>>              compilers.
> >>> Files:      src/structs.h, src/getchar.c
> >>
> >> If you notice a prolem because of this patch, please speak up!
> >> Also if it's just a compiler warning.  We want to know if this C99
> >> feature works for everybody.
> >
> After this patch (8.0.1723), HP-UX throws this error:
> <snip>
> Starting make in the src directory.
> If there are problems, cd to the src directory and run make there
>    cd src && make first
>    cc -c -I. -Iproto -DHAVE_CONFIG_H   -O2  -o objects/arabic.o arabic.c
> cc: "structs.h", line 514: error 1578: Size of struct or union member is 
> unknown.
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1
> 
> Stop.
> </snip>
> 
> It looks like HP-UX compiler doesn't like flexible arrays.

Disappointing...

This document suggests it was added at some point:
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-c02670372

Apparently it was added with version B.11.11.16.
What version are you using?
Is there any way to upgrade?

-- 
hundred-and-one symptoms of being an internet addict:
211. Your husband leaves you...taking the computer with him and you
     call him crying, and beg him to bring the computer back.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui