Fix unused parameters and variables
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
//#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
|
||||
typedef std::codecvt<char16_t, char, std::mbstate_t> F;
|
||||
static_assert((std::is_base_of<std::locale::facet, F>::value), "");
|
||||
static_assert((std::is_base_of<std::codecvt_base, F>::value), "");
|
||||
@@ -38,5 +37,5 @@ int main()
|
||||
assert(std::has_facet<F>(l));
|
||||
const F& f = std::use_facet<F>(l);
|
||||
(void)F::id;
|
||||
//#endif
|
||||
((void)f);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
//#ifndef _LIBCPP_HAS_NO_UNICODE_CHARS
|
||||
typedef std::codecvt<char32_t, char, std::mbstate_t> F;
|
||||
static_assert((std::is_base_of<std::locale::facet, F>::value), "");
|
||||
static_assert((std::is_base_of<std::codecvt_base, F>::value), "");
|
||||
@@ -38,5 +37,5 @@ int main()
|
||||
assert(std::has_facet<F>(l));
|
||||
const F& f = std::use_facet<F>(l);
|
||||
(void)F::id;
|
||||
//#endif
|
||||
((void)f);
|
||||
}
|
||||
|
||||
@@ -24,5 +24,6 @@ int main()
|
||||
{
|
||||
B b;
|
||||
std::mbstate_t s = b.state();
|
||||
((void)s);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,5 @@ int main()
|
||||
typedef std::wstring_convert<Codecvt> Myconv;
|
||||
Myconv myconv;
|
||||
std::mbstate_t s = myconv.state();
|
||||
((void)s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user