Add macros disabling/enabling deprecation warnings
Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
79da3bb879
commit
dafd73e7e8
1 changed files with 16 additions and 0 deletions
|
@ -73,6 +73,22 @@ extern "C" {
|
|||
*/
|
||||
#define DDSRT_UNUSED_ARG(a) (void)(a)
|
||||
|
||||
/**
|
||||
* @brief Macro to disable warnings for calling deprecated interfaces
|
||||
*/
|
||||
#define DDSRT_WARNING_DEPRECATED_OFF \
|
||||
DDSRT_WARNING_CLANG_OFF(deprecated-declarations) \
|
||||
DDSRT_WARNING_GNUC_OFF(deprecated-declarations) \
|
||||
DDSRT_WARNING_MSVC_OFF(4996)
|
||||
|
||||
/**
|
||||
* @brief Macro to enable warnings for calling deprecated interfaces
|
||||
*/
|
||||
#define DDSRT_WARNING_DEPRECATED_ON \
|
||||
DDSRT_WARNING_CLANG_ON(deprecated-declarations) \
|
||||
DDSRT_WARNING_GNUC_ON(deprecated-declarations) \
|
||||
DDSRT_WARNING_MSVC_ON(4996)
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue