1
0
Fork 0

make @dothebart happier

This commit is contained in:
jsteemann 2017-03-29 15:04:54 +02:00
parent 8809de608d
commit bd4a2eb6b6
2 changed files with 1 additions and 10 deletions

View File

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

View File

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