libftdi Archives

Subject: Re: Warning in Python wrapper

From: Xiaofan Chen <xiaofanc@xxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Mon, 14 Jan 2013 21:36:43 +0800
On Mon, Jan 14, 2013 at 5:45 PM, xantares 09 <xantares09@xxxxxxxxxxx> wrote:
>
> OMG you're right it's broken.
>
> Here is a patch.
> And another to fix python3 build.
>

I do not have Python 3 installed under my Mac but your
patch solved my problem with Python 2 under Mac OS X.
Thanks a lot.

The warings are still there but I think it is not a real problem.

Scanning dependencies of target _ftdi1
[ 44%] Building C object bindings/CMakeFiles/_ftdi1.dir/ftdi1PYTHON_wrap.c.o
/Users/xiaofanc/work/libftdi/libftdi/build/bindings/ftdi1PYTHON_wrap.c:2366:23:
warning:
      explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                  res = SWIG_AddCast(res);
                  ~~~ ^              ~~~
/Users/xiaofanc/work/libftdi/libftdi/build/bindings/ftdi1PYTHON_wrap.c:2369:23:
warning:
      explicitly assigning a variable of type 'int' to itself [-Wself-assign]
                  res = SWIG_AddCast(res);
                  ~~~ ^              ~~~
2 warnings generated.
Linking C shared module _ftdi1.so
[ 44%] Built target _ftdi1


-- 
Xiaofan

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

Current Thread