forked from boostorg/functional
Suppress warnings about std::auto_ptr in factory tests
They're testing that the library works with std::auto_ptr, the library itself doesn't use it.
This commit is contained in:
@@ -20,6 +20,12 @@ class sum
|
||||
operator int() const { return this->val_sum; }
|
||||
};
|
||||
|
||||
// Suppress warnings about std::auto_ptr.
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
int one = 1, two = 2;
|
||||
@@ -42,3 +48,6 @@ int main()
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
@@ -21,6 +21,12 @@ class sum
|
||||
operator int() const { return this->val_sum; }
|
||||
};
|
||||
|
||||
// Suppress warnings about std::auto_ptr.
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
int one = 1, two = 2;
|
||||
@@ -44,3 +50,7 @@ int main()
|
||||
#endif
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user