mirror of
https://github.com/opencv/opencv.git
synced 2025-07-28 08:06:59 +08:00
removed MSVC warning suppression
This commit is contained in:
parent
cf86f88c71
commit
2ad612f475
@ -10334,12 +10334,7 @@ class TypeWithoutFormatter<T, kConvertibleToInteger> {
|
|||||||
// T is not an enum, printing it as an integer is the best we can do
|
// T is not an enum, printing it as an integer is the best we can do
|
||||||
// given that it has no user-defined printer.
|
// given that it has no user-defined printer.
|
||||||
static void PrintValue(const T& value, ::std::ostream* os) {
|
static void PrintValue(const T& value, ::std::ostream* os) {
|
||||||
// MSVC warns about implicitly converting from double and float to int for
|
const internal::BiggestInt kBigInt = static_cast<internal::BiggestInt>(value);
|
||||||
// possible loss of data, so we need to temporarily disable the
|
|
||||||
// warning.
|
|
||||||
GTEST_DISABLE_MSC_WARNINGS_PUSH_(4244)
|
|
||||||
const internal::BiggestInt kBigInt = value;
|
|
||||||
GTEST_DISABLE_MSC_WARNINGS_POP_()
|
|
||||||
*os << kBigInt;
|
*os << kBigInt;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user