mirror of https://gitee.com/bigwinds/arangodb
make @dothebart happier
This commit is contained in:
parent
8809de608d
commit
bd4a2eb6b6
|
@ -902,7 +902,7 @@ TRI_vocbase_t* DatabaseFeature::useDatabaseCoordinator(TRI_voc_tick_t id) {
|
|||
TRI_vocbase_t* vocbase = p.second;
|
||||
|
||||
if (vocbase->id() == id) {
|
||||
bool result TRI_UNUSED = vocbase->use();
|
||||
bool result = vocbase->use();
|
||||
|
||||
// if we got here, no one else can have deleted the database
|
||||
TRI_ASSERT(result == true);
|
||||
|
|
|
@ -28,15 +28,6 @@
|
|||
#error use <Basics/Common.h>
|
||||
#endif
|
||||
|
||||
/// @brief mark a value as unused
|
||||
#if defined(__GNUC__) || defined(__GNUG__)
|
||||
#define TRI_UNUSED __attribute__((unused))
|
||||
#elif defined(__clang__)
|
||||
#define TRI_UNUSED __attribute__((unused))
|
||||
#else
|
||||
#define TRI_UNUSED /* unused */
|
||||
#endif
|
||||
|
||||
/// @brief warn if return value is unused
|
||||
#if defined(__GNUC__) || defined(__GNUG__)
|
||||
#define TRI_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
||||
|
|
Loading…
Reference in New Issue