aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libpqxx/include/pqxx/internal/ignore-deprecated-pre.hxx
blob: 9ada1b7205b2eb1f9b328eacde1ca142857f73bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/** Start a block of deprecated code which may call other deprecated code.
 *
 * Most compilers will emit warnings when deprecated code is invoked from
 * non-deprecated code.  But some compilers (notably gcc) will always emit the
 * warning, even when the calling code is also deprecated.
 *
 * This header starts a block where those warnings are suppressed.  It can be
 * included inside a code block.
 *
 * Always match the #include with a closing #include of
 * "ignore-deprecated-post.hxx".  To avoid mistakes, keep the enclosed area as
 * small as possible.
 */
#if defined(__GNUC__)

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"

#endif // __GNUC__