mirror of https://github.com/swig/swig
Visual C++ warning fixes in testcases
This commit is contained in:
parent
b7ef44574e
commit
c6e9f82d07
|
@ -133,6 +133,7 @@ template<class D, typename _Super=AnyVal> class Expression {
|
|||
|
||||
void TestInstantiationsPart4() {
|
||||
Expression<AnyVal, AnyVal::Super> express;
|
||||
(void)express;
|
||||
DeriveToBase<Expression, AnyVal, AnyVal, AnyVal, AnyVal> derive_to_base = AnyVal();
|
||||
}
|
||||
%}
|
||||
|
|
|
@ -82,8 +82,9 @@ template <typename TTTT> struct Lyst<const TTTT&> { void specialized3(TTTT) {} }
|
|||
|
||||
void test_list() {
|
||||
double mydouble = 0;
|
||||
short myshort = 0;
|
||||
Lyst<double>().primary(mydouble, Allocator<double>());
|
||||
Lyst<short, Allocator<short> >().primary(mydouble, Allocator<short>());
|
||||
Lyst<short, Allocator<short> >().primary(myshort, Allocator<short>());
|
||||
|
||||
PlainStruct ps;
|
||||
int myint = 0;
|
||||
|
|
Loading…
Reference in New Issue