Remove unnecessary silencing of unused vars

__attribute__ is a gcc extension (supported by clang), but isn't
portable. However, this warning doesn't show up when the variables are
constexpr.
This commit is contained in:
Jørgen Kvalsvik
2016-10-19 11:50:08 +02:00
parent bc58e417f8
commit 47ca0b333d

View File

@@ -242,15 +242,6 @@ namespace Opm {
return q / unit;
}
} // namespace convert
#ifndef HAS_ATTRIBUTE_UNUSED
namespace detail {
// Some units are sometimes unused, and generate a (potentially) large number of warnings
// Adding them here silences these warnings, and should have no side-effects
constexpr double __attribute__((unused)) unused_units = stb + liter + barsa + psia + darcy;
} // namespace detail
#endif
}
namespace Metric {