Skip to content

Commit

Permalink
make @dothebart happier
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteemann committed Mar 29, 2017
1 parent 8809de6 commit bd4a2eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion arangod/RestServer/DatabaseFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions lib/Basics/system-compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bd4a2eb

Please sign in to comment.