libpqxx
The C++ client library for PostgreSQL
Loading...
Searching...
No Matches
ignore-deprecated-pre.hxx File Reference

Go to the source code of this file.

Macros

#define PQXX_IGNORING_DEPRECATED

Macro Definition Documentation

◆ PQXX_IGNORING_DEPRECATED

#define PQXX_IGNORING_DEPRECATED

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.