Bug 1012971 - Fix compiler warnings in mfbt r=nbp

This commit is contained in:
Dan Gohman 2014-05-22 11:15:06 -07:00
parent b8899a4aa1
commit 3fd6d9a5d9
2 changed files with 4 additions and 4 deletions

View File

@ -338,7 +338,7 @@ struct FuzzyEqualsEpsilon<float>
{
// A number near 1e-5 that is exactly representable in
// floating point
static const float value() { return 1.0f / (1 << 17); }
static float value() { return 1.0f / (1 << 17); }
};
template<>
@ -346,7 +346,7 @@ struct FuzzyEqualsEpsilon<double>
{
// A number near 1e-12 that is exactly representable in
// a double
static const double value() { return 1.0 / (1LL << 40); }
static double value() { return 1.0 / (1LL << 40); }
};
} // namespace detail

View File

@ -290,8 +290,8 @@ template <typename T>
struct TypeSpecificScopedPointerTraits
{
typedef T* type;
const static type empty() { return nullptr; }
const static void release(type value)
static type empty() { return nullptr; }
static void release(type value)
{
if (value)
TypeSpecificDelete(value);