Include the type in empty vector literals.
Chromium on Linux builds against libstdc++'s debug mode which makes
clang unhappy due to:
../crypto/bytestring/bytestring_test.cc:910:7: error: chosen constructor
is explicit in copy-initialization
{},
^~
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/debug/vector:79:7:
note: constructor declared here
vector(const _Allocator& __a = _Allocator())
^
I believe this was fixed here, but it's too recent:
36f540c70b
Change-Id: I2942d153e1278785c3b81294bc99b86f297cf719
Reviewed-on: https://boringssl-review.googlesource.com/12967
Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
28feb92a5b
commit
48e2be247a
@ -907,7 +907,7 @@ static bool TestBitString() {
|
||||
|
||||
static const std::vector<uint8_t> kInvalidBitStrings[] = {
|
||||
// BIT STRINGs always have a leading byte.
|
||||
{},
|
||||
std::vector<uint8_t>{},
|
||||
// It's not possible to take an unused bit off the empty string.
|
||||
{0x01},
|
||||
// There can be at most 7 unused bits.
|
||||
|
Loading…
Reference in New Issue
Block a user