- Aldebaran documentation |
- C++ Libraries |
- index

libqi-api 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
warn_push_ignore_deprecated.hpp
Go to the documentation of this file.
1 /*
2 ** Copyright (C) 2012 Aldebaran Robotics
3 ** See COPYING for the license
4 */
5
6 /*
7 * this allow removing spurious warning when a deprecated declaration use another deprecated declaration.
8 *
9 * QI_API_DEPRECATED class Foo;
10 *
11 * #include <qi/detail/warn_push_ignore_deprecated.hpp>
12 * //Would emit a spurious deprecated warning about Foo otherwise
13 * QI_API_DEPRECATED void bar(Foo foo);
14 * #include <qi/detail/warn_pop_ignore_deprecated.hpp>
15 */
16
17
18 // clang and GCC
19 #if defined(__GNUC__)
20 # if defined(__clang__) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
21 # pragma GCC diagnostic push
22 # endif
23 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
24 #elif defined(_MSC_VER)
25 # pragma warning(push)
26 # pragma warning(disable : 4996)
27 #endif