[chbot] C99 quirk
Mark Atherton
markaren1 at xtra.co.nz
Sun Nov 11 22:00:55 GMT 2018
news to me.
Is this example relevant ? https://stackoverflow.com/questions/17771484/what-is-a-parameter-forward-declaration
-Mark
> On 12 November 2018 at 10:41 Charles Manning <cdhmanning at gmail.com> wrote:
>
> Having used C continuously since 1984, I thought I had a close to exhaustive understanding of C.
>
> Today I discovered something new, which looks potentially handy, but also looks pretty dangerous too:
>
> http://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
>
> I discovered this inadvertently when I got the following compilation error:
>
> connection.c:59:18: error: parameter ‘good’ has just a forward declaration
> uint32_t good;
>
> Live and learn...
>
> _______________________________________________
> Chchrobotics mailing list Chchrobotics at lists.ourshack.com
> https://lists.ourshack.com/mailman/listinfo/chchrobotics
> Mail Archives: http://lists.ourshack.com/pipermail/chchrobotics/
> Meetings usually 3rd Monday each month. See http://kiwibots.org for venue, directions and dates.
> When replying, please edit your Subject line to reflect new subjects.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20181112/6ea1b3d7/attachment.html>
More information about the Chchrobotics
mailing list