Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2014-08-05 00:43:50 +0400
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-08-05 02:11:36 +0400
commit53b4accb6e5747b156be91a2b90f42607e33a7cc (patch)
treeb6a1897646c3244bf72823e98741418b62ebcc93
parent6f043940bdcbfb5272be8ae959cd74b9fb5cf4f8 (diff)
v8: Fix compliation with GCC 4.8
Supresses a very loud warning from GCC 4.8 about unused typedefs Original url https://codereview.chromium.org/69413002
-rw-r--r--deps/v8/src/checks.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/deps/v8/src/checks.h b/deps/v8/src/checks.h
index d0a0c2b5acf..4396adaa33c 100644
--- a/deps/v8/src/checks.h
+++ b/deps/v8/src/checks.h
@@ -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.
@@ -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;