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:
Eric Fiselier
2016-12-23 23:37:52 +00:00
parent 17a98d8a92
commit 0e5ebbc77c
120 changed files with 307 additions and 268 deletions

View File

@@ -617,11 +617,12 @@ int main()
}
std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
*/ {
/*
std::cmatch m;
const char s[] = "m";
/* assert(std::regex_match(s, m,*/ std::regex("[a[=M=]z]"/*,
std::regex_constants::awk*/);//));
/* assert(m.size() == 1);
assert(std::regex_match(s, m, std::regex("[a[=M=]z]",
std::regex_constants::awk);
assert(m.size() == 1);
assert(!m.prefix().matched);
assert(m.prefix().first == s);
assert(m.prefix().second == m[0].first);

View File

@@ -37,6 +37,8 @@ extern "C" void LLVMFuzzerTestOneInput(const char *data)
}
catch (std::regex_error &) {}
}
#else
((void)data);
#endif
}