#1300 clang warning in SWIG_Python_ConvertPtrAndOwn

None
closed
nobody
python (259)
5
2013-03-05
2013-01-14
Michel Zou
No

Hi,

I got a warning with swig 2.0.9 when compiling a python wrapper with clang 3.2:

In the embedded function SWIG_Python_ConvertPtrAndOwn:
res = SWIG_AddCast(res);

The compiler outputs:
/home/michel/projects/libftdi/build_py3/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.

Regards,

M.

Discussion

  • jschueller

    jschueller - 2013-02-20

    Hi,

    Here is a patch for this.

    Regards,

    M.

     
  • Michel Zou

    Michel Zou - 2013-03-05

    Close me I'm fixed please! PR #29.

     
  • William Fulton

    William Fulton - 2013-03-05
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
    
     Hi,
    
    • status: open --> closed
    • milestone: -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks