SPEC-2513 Fixes to enable w4310
This commit is contained in:
@@ -282,11 +282,9 @@ struct TIntTraits
|
||||
static const size_t nPOS_BITS
|
||||
= sizeof(T) * 8 - bSIGNED;
|
||||
|
||||
static const T nMIN
|
||||
= bSIGNED ? T (T(1) << (T(sizeof(T) * 8 - 1))) : T(0);
|
||||
static const T nMIN = std::numeric_limits<T>::min();
|
||||
|
||||
static const T nMAX
|
||||
= ~nMIN;
|
||||
static const T nMAX = std::numeric_limits<T>::max();
|
||||
};
|
||||
|
||||
template<uint S>
|
||||
|
||||
@@ -66,7 +66,6 @@ ly_append_configurations_options(
|
||||
/wd4244 # conversion, possible loss of data
|
||||
/wd4245 # conversion, signed/unsigned mismatch
|
||||
/wd4267 # conversion, possible loss of data
|
||||
/wd4310 # cast truncates constant value
|
||||
/wd4389 # comparison, signed/unsigned mismatch
|
||||
|
||||
# Enabling warnings that are disabled by default from /W4
|
||||
|
||||
Reference in New Issue
Block a user