From 89091307bf1ac33bc952c815844f20cbc17489cf Mon Sep 17 00:00:00 2001 From: Suyash Mahar Date: Sat, 28 Sep 2024 19:45:15 -0700 Subject: [PATCH] Add IGNORE_DEPRECATED --- include/nvsl/common.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/nvsl/common.hh b/include/nvsl/common.hh index 148a6a3..6d989ff 100644 --- a/include/nvsl/common.hh +++ b/include/nvsl/common.hh @@ -39,6 +39,12 @@ #define NVSL_END_IGNORE_WPEDANTIC _Pragma("GCC diagnostic pop") +#define NVSL_BEGIN_IGNORE_DEPRECATED \ + _Pragma("GCC diagnostic push") \ + _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") + +#define NVSL_END_IGNORE_DEPRECATED _Pragma("GCC diagnostic pop") + // Do magic! Creates a unique name using the line number #define NVSL_LINE_NAME(prefix) NVSL_JOIN(prefix, __LINE__) #define NVSL_JOIN(symbol1, symbol2) NVSL_DO_JOIN(symbol1, symbol2)