[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}
This commit is contained in:
kozyatinskiy 2016-09-14 12:04:50 -07:00 committed by Commit bot
parent 6a716ae9a4
commit b249ffc191
2 changed files with 0 additions and 6 deletions

View File

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

View File

@ -1755,7 +1755,6 @@
4996, # Deprecated function call.
],
'cflags': [
'-Wno-zero-length-array',
'-Wno-deprecated-declarations',
],
}],