fix compilation warnings for vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fa72166164
commit
f38b4df07d
3 changed files with 8 additions and 8 deletions
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
%{
|
||||
// forward reference needed if using SWIG_ATTRIBUTE_TEMPLATE
|
||||
class A;
|
||||
class MyFoo; // %attribute2 does not work with templates
|
||||
struct A;
|
||||
struct MyFoo; // %attribute2 does not work with templates
|
||||
%}
|
||||
|
||||
%attribute(A, int, a, get_a, set_a);
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ namespace Space {
|
|||
void templateXYZ(XYZ<T> i) {}
|
||||
operator T() { return m_t; }
|
||||
operator NotXYZ<T>() const { return m_notxyz; }
|
||||
operator XYZ<T>() const { XYZ<T> xyz; return xyz; }
|
||||
operator XYZ<T>() const { XYZ<T> xyz = XYZ<T>(); return xyz; }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
%ignore convolve1<float>(float a);
|
||||
|
||||
%inline %{
|
||||
template <typename ImageT> int convolve1() { ImageT t; return 0; }
|
||||
template <typename ImageT> int convolve1() { return 0; }
|
||||
template <typename ImageT> void convolve1(ImageT a) { ImageT t = a; }
|
||||
%}
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ template <typename ImageT> void convolve1(ImageT a) { ImageT t = a; }
|
|||
%ignore convolve2<float>(float a);
|
||||
|
||||
%inline %{
|
||||
template <typename ImageT> int convolve2() { ImageT t; return 0; }
|
||||
template <typename ImageT> int convolve2() { return 0; }
|
||||
template <typename ImageT> void convolve2(ImageT a) { ImageT t = a; }
|
||||
%}
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ template <typename ImageT> void convolve2(ImageT a) { ImageT t = a; }
|
|||
%rename(convolve3FloatRenamed) convolve3<float>(float a);
|
||||
|
||||
%inline %{
|
||||
template <typename ImageT> int convolve3() { ImageT t; return 0; }
|
||||
template <typename ImageT> int convolve3() { return 0; }
|
||||
template <typename ImageT> void convolve3(ImageT a) { ImageT t = a; }
|
||||
%}
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ template <typename ImageT> void convolve3(ImageT a) { ImageT t = a; }
|
|||
%rename(convolve4FloatRenamed) convolve4<float>(float a);
|
||||
|
||||
%inline %{
|
||||
template <typename ImageT> int convolve4() { ImageT t; return 0; }
|
||||
template <typename ImageT> int convolve4() { return 0; }
|
||||
template <typename ImageT> void convolve4(ImageT a) { ImageT t = a; }
|
||||
%}
|
||||
|
||||
|
|
@ -53,7 +53,7 @@ template <typename ImageT> void convolve4(ImageT a) { ImageT t = a; }
|
|||
%ignore convolve5<bool>;
|
||||
|
||||
%inline %{
|
||||
template <typename ImageT> int convolve5() { ImageT t; return 0; }
|
||||
template <typename ImageT> int convolve5() { return 0; }
|
||||
template <typename ImageT> void convolve5(ImageT a) { ImageT t = a; }
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue