From 3970ed2560092ebf84755e3ce19ab7cbe12f9761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Fr=C3=B6jdh?= Date: Fri, 26 Aug 2022 09:23:05 +0200 Subject: [PATCH] Suppress -Wdeprecated-declarations for gcc (#536) * Supress gcc warning from rapidjson include Co-authored-by: Erik Frojdh --- slsSupportLib/include/sls/ZmqSocket.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/slsSupportLib/include/sls/ZmqSocket.h b/slsSupportLib/include/sls/ZmqSocket.h index e25e9b115..30ef1e89c 100644 --- a/slsSupportLib/include/sls/ZmqSocket.h +++ b/slsSupportLib/include/sls/ZmqSocket.h @@ -14,7 +14,15 @@ #include #include + +// Selective suppression of warning in gcc, +// showed up in gcc 12 and at the moment +// no upgrade is available to rapidjson +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include //json header in zmq stream +#pragma GCC diagnostic pop + #include namespace sls {