libftdi-git Archives

Subject: port libftdi to libusb-1.0 branch, master, updated. v0.17-284-gb060307

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 29 Sep 2011 22:03:11 +0200 (CEST)
The branch, master has been updated
       via  b060307ce075601094a24ea23fc57bd9ed855186 (commit)
      from  b790d38e9fac3e2144293a84bfc6de72b01a6c6d (commit)


- Log -----------------------------------------------------------------
commit b060307ce075601094a24ea23fc57bd9ed855186
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Thu Sep 29 22:02:20 2011 +0200

    SWIG wrapper: Mark ftdi_version_info.version_str and .snapshot_str read only
    
    Fixes this warning:
    Warning 451: Setting a const char * variable may leak memory.

-----------------------------------------------------------------------

Summary of changes:
 bindings/ftdi.i |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/bindings/ftdi.i b/bindings/ftdi.i
index 2903924..ace244b 100644
--- a/bindings/ftdi.i
+++ b/bindings/ftdi.i
@@ -10,6 +10,9 @@
 %ignore ftdi_write_data_async;
 %ignore ftdi_async_complete;
 
+%immutable ftdi_version_info::version_str;
+%immutable ftdi_version_info::snapshot_str;
+
 %include ftdi.h
 %{
 #include <ftdi.h>


hooks/post-receive
-- 
port libftdi to libusb-1.0

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

Current Thread
  • port libftdi to libusb-1.0 branch, master, updated. v0.17-284-gb060307, libftdi-git <=