Opened 6 years ago
#12338 new Bugs
compiler warnings in unused variables and typedef
| Reported by: | anonymous | Owned by: | Boris Gubenko |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | interval |
| Version: | Boost 1.61.0 | Severity: | Cosmetic |
| Keywords: | Cc: |
Description
Compiling boost/numeric/interval gave compiler warnings.
The following changes fixes these:
--- boost_1_61_0/boost/numeric/interval/arith2.hpp 2016-05-05 23:13:19.000000000 +0200
+++ b/boost/numeric/interval/arith2.hpp 2016-07-21 14:19:20.675084428 +0200
@@ -273,7 +273,6 @@
if (interval_lib::detail::test_input(x)) return I::empty();
assert(k > 0);
if (k == 1) return x;
- typename Policies::rounding rnd;
typedef typename interval_lib::unprotect<I>::type R;
if (!interval_lib::user::is_pos(x.upper())) {
if (interval_lib::user::is_zero(x.upper())) {
--- boost_1_61_0/boost/numeric/interval/utility.hpp 2016-05-05 23:13:19.000000000 +0200
+++ b/boost/numeric/interval/utility.hpp 2016-07-21 14:19:54.064881144 +0200
@@ -248,7 +248,6 @@
template<class T, class Policies> inline
T norm(const interval<T, Policies>& x)
{
- typedef interval<T, Policies> I;
if (interval_lib::detail::test_input(x)) {
typedef typename Policies::checking checking;
return checking::nan();
Note:
See TracTickets
for help on using tickets.
