[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:
parent
6a716ae9a4
commit
b249ffc191
@ -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',
|
||||
],
|
||||
}],
|
||||
|
Loading…
Reference in New Issue
Block a user