diff --git a/libcxx/include/regex b/libcxx/include/regex --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -5884,7 +5884,6 @@ { vector<__state> __states; __state __best_state; - ptrdiff_t __j = 0; ptrdiff_t __highest_j = 0; ptrdiff_t _Np = _VSTD::distance(__first, __last); __node* __st = __start_.get(); @@ -5945,7 +5944,6 @@ __states.pop_back(); break; case __state::__accept_and_consume: - __j += __s.__current_ - __current; __current = __s.__current_; break; case __state::__repeat: diff --git a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/eval.pass.cpp b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/eval.pass.cpp --- a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/eval.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/eval.pass.cpp @@ -177,8 +177,8 @@ double mean = std::accumulate(u.begin(), u.end(), double(0)) / u.size(); double var = 0; - double skew = 0; - double kurtosis = 0; + // double skew = 0; + // double kurtosis = 0; for (unsigned i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); @@ -226,8 +226,8 @@ double mean = std::accumulate(u.begin(), u.end(), double(0)) / u.size(); double var = 0; - double skew = 0; - double kurtosis = 0; + // double skew = 0; + // double kurtosis = 0; for (unsigned i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); @@ -379,8 +379,8 @@ double mean = std::accumulate(u.begin(), u.end(), double(0)) / u.size(); double var = 0; - double skew = 0; - double kurtosis = 0; + // double skew = 0; + // double kurtosis = 0; for (unsigned i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); @@ -428,8 +428,8 @@ double mean = std::accumulate(u.begin(), u.end(), double(0)) / u.size(); double var = 0; - double skew = 0; - double kurtosis = 0; + // double skew = 0; + // double kurtosis = 0; for (unsigned i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); @@ -477,8 +477,8 @@ double mean = std::accumulate(u.begin(), u.end(), double(0)) / u.size(); double var = 0; - double skew = 0; - double kurtosis = 0; + // double skew = 0; + // double kurtosis = 0; for (unsigned i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean); diff --git a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/eval.pass.cpp b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/eval.pass.cpp --- a/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/eval.pass.cpp +++ b/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/eval.pass.cpp @@ -177,8 +177,8 @@ double mean = std::accumulate(u.begin(), u.end(), double(0)) / u.size(); double var = 0; - double skew = 0; - double kurtosis = 0; + // double skew = 0; + // double kurtosis = 0; for (unsigned i = 0; i < u.size(); ++i) { double dbl = (u[i] - mean);