enable_warnings.hpp 1.6 KB

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright Gennadiy Rozental 2004-2008.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //
  7. // File : $RCSfile$
  8. //
  9. // Version : $Revision: 54633 $
  10. //
  11. // Description : enable previosly suppressed warnings
  12. // ***************************************************************************
  13. #ifdef BOOST_MSVC
  14. # pragma warning(default: 4511) // copy constructor can't not be generated
  15. # pragma warning(default: 4512) // assignment operator can't not be generated
  16. # pragma warning(default: 4100) // unreferenced formal parameter
  17. # pragma warning(default: 4996) // <symbol> was declared deprecated
  18. # pragma warning(default: 4355) // 'this' : used in base member initializer list
  19. # pragma warning(default: 4706) // assignment within conditional expression
  20. # pragma warning(default: 4251) // class 'A<T>' needs to have dll-interface to be used by clients of class 'B'
  21. # pragma warning(default: 4127) // conditional expression is constant
  22. # pragma warning(default: 4290) // C++ exception specification ignored except to ...
  23. # pragma warning(default: 4180) // qualifier applied to function type has no meaning; ignored
  24. # pragma warning(default: 4275) // non dll-interface class ... used as base for dll-interface class ...
  25. # pragma warning(default: 4267) // 'var' : conversion from 'size_t' to 'type', possible loss of data
  26. # pragma warning(default: 4511) // 'class' : copy constructor could not be generated
  27. # pragma warning(pop)
  28. #endif