Skip to content

Commit ecb241a

Browse files
committed
tests: remove all -Wall warnings
1 parent ff710d1 commit ecb241a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

test/optional_test_convert_from_T.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ void test_optional_of_superconverting_T() // compile-time test
4545
superconv<optional<int> > s;
4646
superconv<optional<int> > & rs = s;
4747
optional<superconv<optional<int> > > os = rs;
48+
(void)s;
49+
(void)os;
4850
#endif
4951
}
5052

test/optional_test_inplace_factory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ template <typename CharT>
111111
struct basic_formatter
112112
{
113113
template< typename FunT >
114-
basic_formatter(FunT&& fun) {}
114+
basic_formatter(FunT&&) {}
115115

116116
template< typename FunT >
117-
basic_formatter& operator= (FunT&& fun)
117+
basic_formatter& operator= (FunT&&)
118118
{
119119
return *this;
120120
}

0 commit comments

Comments
 (0)