# HG changeset patch # User Sebastien Jodogne # Date 1763489855 -3600 # Node ID 11f76e2aaed1c671206d5bb18c6bd4ad672e25cf # Parent 68de7e892eaa1752606387888810f945649b63e3 removed deprecation warning inside c++ wrapper diff -r 68de7e892eaa -r 11f76e2aaed1 OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue Nov 18 18:34:51 2025 +0100 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue Nov 18 19:17:35 2025 +0100 @@ -4647,8 +4647,11 @@ uint8_t found = false; OrthancPlugins::MemoryBuffer valueBuffer; +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" OrthancPluginErrorCode code = OrthancPluginDequeueValue(OrthancPlugins::GetGlobalContext(), &found, *valueBuffer, queueId_.c_str(), origin); +#pragma GCC diagnostic pop if (code != OrthancPluginErrorCode_Success) { diff -r 68de7e892eaa -r 11f76e2aaed1 OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h --- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue Nov 18 18:34:51 2025 +0100 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue Nov 18 19:17:35 2025 +0100 @@ -1765,7 +1765,7 @@ #if HAS_ORTHANC_PLUGIN_RESERVE_QUEUE_VALUE == 1 bool ReserveBack(std::string& value, uint64_t& valueId, uint32_t releaseTimeout); #endif - + #if HAS_ORTHANC_PLUGIN_RESERVE_QUEUE_VALUE == 1 bool ReserveFront(std::string& value, uint64_t& valueId, uint32_t releaseTimeout); #endif