Funny code in universal.c

Steve Boyd sboydlns at gmail.com
Mon Dec 5 22:07:33 UTC 2011


I got an error while compiling universal.c with Visual Studio.  The 
compiler didn't like the following line:

     device_data_t devdata = {0};

in dowork().

I changed it to:

     device_data_t devdata;
     memchr(&devdata, 0, sizeof(devdata));

and now everything compiles cleanly.

Thought you should know.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libdivecomputer.org/pipermail/devel/attachments/20111205/789e5e2d/attachment.html>


More information about the Devel mailing list