mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Remove use of deprecated behavior involving copy members
* If any of the destructor, copy assignment or copy constructor are user-declared, both copy members should be user-declared, otherwise the compiler-generation of them is deprecated.
This commit is contained in:
@@ -28,6 +28,11 @@
|
||||
This module requires the @ref beast_sqlite external module.
|
||||
*/
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated"
|
||||
#endif
|
||||
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/core/JobQueue.h>
|
||||
#define SOCI_USE_BOOST
|
||||
@@ -138,4 +143,8 @@ std::unique_ptr <Checkpointer> makeCheckpointer (soci::session&, JobQueue&, Logs
|
||||
#include "version.h"
|
||||
#endif
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
header file and some macros to be defined.)
|
||||
*/
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated"
|
||||
#endif
|
||||
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/basics/contract.h>
|
||||
#include <ripple/core/SociDB.h>
|
||||
@@ -57,3 +62,6 @@ void unload_all (){};
|
||||
} // namespace dynamic_backends
|
||||
} // namespace soci
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated"
|
||||
#endif
|
||||
|
||||
#include <BeastConfig.h>
|
||||
|
||||
#include <ripple/basics/contract.h>
|
||||
@@ -271,3 +276,7 @@ std::unique_ptr <Checkpointer> makeCheckpointer (
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#if defined(__clang__)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user