Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
v8: Fix compliation with GCC 4.8
Browse files Browse the repository at this point in the history
Supresses a very loud warning from GCC 4.8 about unused typedefs

Original url https://codereview.chromium.org/69413002
  • Loading branch information
tjfontaine committed Aug 4, 2014
1 parent 6f04394 commit 53b4acc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion deps/v8/src/checks.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@ inline void CheckNonEqualsHelper(const char* file,
#define CHECK_LE(a, b) CHECK((a) <= (b))


#if defined(__clang__) || defined(__GNUC__)
# define V8_UNUSED __attribute__((unused))
#else
# define V8_UNUSED
#endif


// This is inspired by the static assertion facility in boost. This
// is pretty magical. If it causes you trouble on a platform you may
// find a fix in the boost code.
Expand All @@ -248,7 +255,7 @@ template <int> class StaticAssertionHelper { };
#define STATIC_CHECK(test) \
typedef \
StaticAssertionHelper<sizeof(StaticAssertion<static_cast<bool>((test))>)> \
SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__)
SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__) V8_UNUSED


extern bool FLAG_enable_slow_asserts;
Expand Down

1 comment on commit 53b4acc

@indutny
Copy link
Member

@indutny indutny commented on 53b4acc Aug 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Please sign in to comment.