mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
style: fix gcc12 compilation errors
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
00a1a14652
commit
ac01f74924
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
* Copyright (C) 2020-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -55,6 +55,7 @@ ArFileEntryHeader *ArEncoder::appendFileEntry(const ConstStringRef fileName, con
|
||||
|
||||
std::vector<uint8_t> ArEncoder::encode() const {
|
||||
std::vector<uint8_t> ret;
|
||||
ret.reserve(arMagic.size() + 1);
|
||||
ret.insert(ret.end(), reinterpret_cast<const uint8_t *>(arMagic.begin()), reinterpret_cast<const uint8_t *>(arMagic.end()));
|
||||
ret.insert(ret.end(), this->fileEntries.begin(), this->fileEntries.end());
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user