[chbot] C99 quirk

Charles Manning cdhmanning at gmail.com
Sun Nov 11 21:41:13 GMT 2018


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...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/chchrobotics/attachments/20181112/ce677d00/attachment.html>


More information about the Chchrobotics mailing list