mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix log setup inline function warning
This commit is contained in:
1
modules/ripple_basics/containers/ripple_TaggedCache.cpp
Normal file
1
modules/ripple_basics/containers/ripple_TaggedCache.cpp
Normal file
@@ -0,0 +1 @@
|
||||
SETUP_LOG (TaggedCacheLog)
|
||||
@@ -12,9 +12,7 @@
|
||||
// CAUTION: Callers must not modify data objects that are stored in the cache
|
||||
// unless they hold their own lock over all cache operations.
|
||||
|
||||
struct TaggedCacheLog { };
|
||||
|
||||
SETUP_LOG (TaggedCacheLog)
|
||||
struct TaggedCacheLog;
|
||||
|
||||
/** Combination cache/map container.
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@
|
||||
#endif
|
||||
|
||||
#include "containers/ripple_RangeSet.cpp"
|
||||
#include "containers/ripple_TaggedCache.cpp"
|
||||
|
||||
#include "utility/ripple_Log.cpp"
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ private:
|
||||
/** Retrieve file name from a log partition.
|
||||
*/
|
||||
template <class Key>
|
||||
inline static char const* getFileName ();
|
||||
static char const* getFileName ();
|
||||
/*
|
||||
{
|
||||
static_vfassert (false);
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
};
|
||||
|
||||
#define SETUP_LOG(k) \
|
||||
template <> inline char const* LogPartition::getFileName <k> () { return __FILE__; } \
|
||||
template <> char const* LogPartition::getFileName <k> () { return __FILE__; } \
|
||||
struct k##Instantiator { k##Instantiator () { LogPartition::get <k> (); } }; \
|
||||
static k##Instantiator k##Instantiator_instance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user