salhelper: work around spurious warning C4189
Change-Id: If919ca6da332bb94419a25253a5d6dec7243def9
This commit is contained in:
parent
a247b8257a
commit
0201156f93
1 changed files with 11 additions and 0 deletions
|
@ -120,6 +120,13 @@ void Test::testCondition() {
|
|||
CPPUNIT_ASSERT(typeid (salhelper::Condition *) == getConditionTypeInfo());
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// MSVC 2012 warns about the "p" being unused
|
||||
#pragma warning (push, 1)
|
||||
#pragma warning (disable: 4189)
|
||||
#endif
|
||||
|
||||
|
||||
void Test::testConditionModifier() {
|
||||
salhelper::ConditionModifier * p = 0;
|
||||
CPPUNIT_ASSERT(typeid (*p) == typeid (salhelper::ConditionModifier));
|
||||
|
@ -184,6 +191,10 @@ void Test::testORealDynamicLoader() {
|
|||
== getORealDynamicLoaderTypeInfo());
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (pop)
|
||||
#endif
|
||||
|
||||
void Test::testSimpleReferenceObject() {
|
||||
salhelper::SimpleReferenceObject * p = new DerivedSimpleReferenceObject;
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue