Suppress -Wdeprecated-declarations for gcc (#536)

* Supress gcc warning from rapidjson include

Co-authored-by: Erik Frojdh <erik.frojdh@psi.ch>
This commit is contained in:
Erik Fröjdh 2022-08-26 09:23:05 +02:00 committed by GitHub
parent 5a22e8b926
commit 3970ed2560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,15 @@
#include <map>
#include <memory>
// 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 <rapidjson/document.h> //json header in zmq stream
#pragma GCC diagnostic pop
#include <zmq.h>
namespace sls {