Visual C++ warning fixes in testcases

This commit is contained in:
William S Fulton 2023-07-07 20:01:14 +01:00
parent b7ef44574e
commit c6e9f82d07
2 changed files with 3 additions and 1 deletions

View File

@ -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();
}
%}

View File

@ -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;