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.
Cheers
John
--
--
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.