forked from boostorg/type_traits
Fix msvc and gcc warnings in the type_traits library.
Build should now be clean with cl /W4 or gcc -Wall -Wextra -pedantic for all except one test - there appears to be no way to use initialized aligned_storage with gcc without it producing a warning :-( [SVN r57489]
This commit is contained in:
Executable → Regular
+4
@@ -13,6 +13,10 @@
|
||||
# include <boost/type_traits/is_abstract.hpp>
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
#pragma warning(disable: 4505)
|
||||
#endif
|
||||
|
||||
|
||||
struct TestA {};
|
||||
struct TestB { virtual void foo(void) = 0; };
|
||||
|
||||
@@ -407,6 +407,10 @@ struct wrap
|
||||
{
|
||||
T t;
|
||||
int j;
|
||||
protected:
|
||||
wrap();
|
||||
wrap(const wrap&);
|
||||
wrap& operator=(const wrap&);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user