Fix log setup inline function warning

This commit is contained in:
Vinnie Falco
2013-06-12 10:15:23 -07:00
parent f6a2920692
commit d90a1276a8
11 changed files with 40 additions and 23 deletions

View File

@@ -0,0 +1 @@
SETUP_LOG (TaggedCacheLog)

View File

@@ -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.

View File

@@ -64,6 +64,7 @@
#endif
#include "containers/ripple_RangeSet.cpp"
#include "containers/ripple_TaggedCache.cpp"
#include "utility/ripple_Log.cpp"

View File

@@ -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;