Re: patch for VxWorks / Wind River Diab Compiler support
Manfred Kogler <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CAMfrEkgJxC_u2CG=ckDfzp4aHbQtcM=RAx7pFAD8yc=jPJ4X5w@mail.gmail.com> |
Hi Bill, ad (4) Actually, we've used that approach since more than a year and didn't run into a problem. However, I just retested and it seems due to a Diab compiler update this compile error is gone, so it is not an issue anymore for us which declaration is used. Besides, _buf is used only locally and not extensively, there is no sizeof() operator used on it. Best regards, Fred On Tue, Feb 18, 2014 at 5:53 PM, Bill Spitzak <[email protected]> wrote: > On 02/18/2014 06:51 AM, Manfred Kogler wrote: > >> (4) error: array declarations of len 0 are not allowed -> replaced with >> pointer to array-elem >> see file cairo-image-compositor.c: >> uint8_t _buf[0]; >> -> >> uint8_t *_buf; >> > > That certainly will not work. Using [1] is common but requires fixing all > the uses of sizeof(). > > > -- > cairo mailing list > [email protected] > http://lists.cairographics.org/mailman/listinfo/cairo > -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo