Fix compilation on clang 4 and 5

Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/209

Change-Id: If0cecc836138f038da9dc74cf21c865b61aadddf
This commit is contained in:
Jacek Danecki
2019-09-09 14:14:25 +02:00
committed by sys_ocldev
parent dd39251af5
commit 6689f45289
2 changed files with 3 additions and 3 deletions

View File

@@ -1441,7 +1441,7 @@ HWTEST_F(DrmCommandStreamHwTest, givenAllocationWithSingleBufferObjectWhenMakeRe
auto size = 1024u;
auto bo = this->createBO(size);
BufferObjects bos{bo};
BufferObjects bos{{bo}};
auto allocation = new DrmAllocation(GraphicsAllocation::AllocationType::UNKNOWN, bos, nullptr, 0u, size, MemoryPool::LocalMemory, false);
EXPECT_EQ(bo, allocation->getBO());