Commit b249ffc1 authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[inspector] removed ArrayLengthHelperFunction specialization for empty array

There is no zero length array usage in inspector codebase. We can safely remove template specialization.

BUG=chromium:635948
R=dgozman@chromium.org,alph@chromium.org

Review-Url: https://codereview.chromium.org/2340623002
Cr-Commit-Position: refs/heads/master@{#39428}
parent 6a716ae9
......@@ -27,11 +27,6 @@ enum NotNullTagEnum { NotNullLiteral };
// gives an error if passed a non-array.
template <typename T, std::size_t Size>
char (&ArrayLengthHelperFunction(T (&)[Size]))[Size];
// GCC needs some help to deduce a 0 length array.
#if defined(__GNUC__)
template <typename T>
char (&ArrayLengthHelperFunction(T (&)[0]))[0];
#endif
#define V8_INSPECTOR_ARRAY_LENGTH(array) \
sizeof(::ArrayLengthHelperFunction(array))
......
......@@ -1755,7 +1755,6 @@
4996, # Deprecated function call.
],
'cflags': [
'-Wno-zero-length-array',
'-Wno-deprecated-declarations',
],
}],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment