libftdi Archives

Subject: [PATCH] fix c++ warnings

From: "Jon Beniston" <jon@xxxxxxxxxxxx>
To: <libftdi@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 17 Jul 2016 10:35:59 +0100

Hi,

 

The attached patch fixes some warnings/errors when compiled with g++ and another compiler:

 

-          Strings should be const char *.

-          Malloc needs to be cast from void * to char *.

-          Avoid mixing declarations with code.

 

Cheers,

Jon

 



libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Attachment: cpp.patch
Description: Binary data

Current Thread