Fixed #1300 clang warning in SWIG_Python_ConvertPtrAndOwn.
Revert "Fixed #1300 clang warning in SWIG_Python_ConvertPtrAndOwn."

This reverts commit 8e340c158c41ee053fd2be2f30b47e9a060515c9.
MOdified only no-cast-rank version of SWIG_AddCast.
Macro expansion to self assign is effectively ignored.
Merge pull request #29 from xantares/master

Fix clang warning due to SWIG_AddCast macro (SF#1300).
SWIG_TypeCompare was not working as commented - return values were 0,1 and not 1,0,-1. Although undocumented and not used anywhere within SWIG, it has been replaced with SWIG_TypeCmp to work as commented.
Fix some useless code detected by scan-build (LLVM/Clang)
More useless code removal as detected by scan-build (LLVM/Clang)
using scan-build ./configure && scan-build make
Minor fix to Octave autodoc generation for functions returning structs

Patch #27

- see also git commit 72ffdb930dcbbe0ae2a1cf7164a7ca4b632b1fee