libqi-api  2.0.6.8
/home/opennao/work/master/sdk/libqi/qi/details/warn_push_ignore_deprecated.hpp
Go to the documentation of this file.
00001 /*
00002 **  Copyright (C) 2012 Aldebaran Robotics
00003 **  See COPYING for the license
00004 */
00005 
00006 /*
00007  * this allow removing spurious warning when a deprecated declaration use another deprecated declaration.
00008  *
00009  * QI_API_DEPRECATED class Foo;
00010  *
00011  * #include <qi/details/diagnostic_push_ignore_deprecated.hpp>
00012  * //Would emit a spurious deprecated warning about Foo otherwise
00013  * QI_API_DEPRECATED void bar(Foo foo);
00014  * #include <qi/details/diagnostic_pop.hpp>
00015  */
00016 
00017 
00018 // clang and GCC
00019 #if defined(__GNUC__)
00020 # if defined(__clang__) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
00021 #  pragma GCC diagnostic push
00022 # endif
00023 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
00024 #elif defined(_MSC_VER)
00025 # pragma warning(push)
00026 # pragma warning(disable : 4996)
00027 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines