git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b790d38
)
SWIG wrapper: Mark ftdi_version_info.version_str and .snapshot_str read only
author
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 29 Sep 2011 20:02:20 +0000 (22:02 +0200)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Thu, 29 Sep 2011 20:02:20 +0000 (22:02 +0200)
Fixes this warning:
Warning 451: Setting a const char * variable may leak memory.
bindings/ftdi.i
patch
|
blob
|
blame
|
history
diff --git
a/bindings/ftdi.i
b/bindings/ftdi.i
index
2903924
..
ace244b
100644
(file)
--- 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>