swig/swig-1.3.31-testsuite-warnings.patch

22 lines
529 B
Diff
Raw Normal View History

--- Examples/test-suite/extend.i
+++ Examples/test-suite/extend.i
@@ -21,6 +21,7 @@ struct Base {
Base(int v = 0) : value(v) {}
int value;
virtual int method(int v) {
+ return v;
}
};
struct Derived : Base {
--- Examples/test-suite/template_array_numeric.i
+++ Examples/test-suite/template_array_numeric.i
@@ -8,7 +8,7 @@ class Arrayf
float a[Len];
public:
Arrayf() {}
- Arrayf(const float l[Len]) { };
+ Arrayf(const float l[Len]) { memcpy((void*)a, (void*)l, sizeof(a)); };
};
template <int Len>