forked from boostorg/variant2
Move warning suppression before the includes
This commit is contained in:
@ -6,6 +6,12 @@
|
|||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
// See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
// http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#if defined( __clang__ ) && defined( __has_warning )
|
||||||
|
# if __has_warning( "-Wdeprecated-volatile" )
|
||||||
|
# pragma clang diagnostic ignored "-Wdeprecated-volatile"
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/variant2/variant.hpp>
|
#include <boost/variant2/variant.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/core/lightweight_test_trait.hpp>
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
@ -15,12 +21,6 @@
|
|||||||
|
|
||||||
using namespace boost::variant2;
|
using namespace boost::variant2;
|
||||||
|
|
||||||
#if defined( __clang__ ) && defined( __has_warning )
|
|
||||||
# if __has_warning( "-Wdeprecated-volatile" )
|
|
||||||
# pragma clang diagnostic ignored "-Wdeprecated-volatile"
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
@ -6,6 +6,12 @@
|
|||||||
// See accompanying file LICENSE_1_0.txt or copy at
|
// See accompanying file LICENSE_1_0.txt or copy at
|
||||||
// http://www.boost.org/LICENSE_1_0.txt
|
// http://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#if defined( __clang__ ) && defined( __has_warning )
|
||||||
|
# if __has_warning( "-Wdeprecated-volatile" )
|
||||||
|
# pragma clang diagnostic ignored "-Wdeprecated-volatile"
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <boost/variant2/variant.hpp>
|
#include <boost/variant2/variant.hpp>
|
||||||
#include <boost/core/lightweight_test.hpp>
|
#include <boost/core/lightweight_test.hpp>
|
||||||
#include <boost/core/lightweight_test_trait.hpp>
|
#include <boost/core/lightweight_test_trait.hpp>
|
||||||
@ -15,12 +21,6 @@
|
|||||||
|
|
||||||
using namespace boost::variant2;
|
using namespace boost::variant2;
|
||||||
|
|
||||||
#if defined( __clang__ ) && defined( __has_warning )
|
|
||||||
# if __has_warning( "-Wdeprecated-volatile" )
|
|
||||||
# pragma clang diagnostic ignored "-Wdeprecated-volatile"
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user