Retain compiler warning state
Added push and pop pragma warning statements. Suppression of warnings should not propagate to user code. Therefore, suppression of warnings is restricted to the file where it is used. Change-Id: Ib7973cbc0205ebbe75e002d035e44fd9b447460f Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>bb10
parent
f54873c81a
commit
5f52974860
|
|
@ -254,7 +254,10 @@ private:
|
|||
};
|
||||
|
||||
#ifdef Q_CC_MSVC
|
||||
# pragma warning ( disable : 4345 ) // behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
|
||||
// behavior change: an object of POD type constructed with an initializer of the form ()
|
||||
// will be default-initialized
|
||||
# pragma warning ( push )
|
||||
# pragma warning ( disable : 4345 )
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
|
|
@ -270,7 +273,7 @@ void QVector<T>::defaultConstruct(T *from, T *to)
|
|||
}
|
||||
|
||||
#ifdef Q_CC_MSVC
|
||||
# pragma warning ( default: 4345 )
|
||||
# pragma warning ( pop )
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
Loading…
Reference in New Issue