Skip to content

Commit a776f3c

Browse files
[SYCL][L0] Silence Coverity false-postive about 'Uninitialized scalar field (UNINIT_CTOR)' (#7249)
It doesn't fix any error, the fields were not used while not initialized Signed-off-by: Sergey V Maslov <[email protected]>
1 parent 37a74c7 commit a776f3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ struct _pi_platform {
371371
// Cache versions info from zeDriverGetProperties.
372372
std::string ZeDriverVersion;
373373
std::string ZeDriverApiVersion;
374-
ze_api_version_t ZeApiVersion;
374+
ze_api_version_t ZeApiVersion{};
375375

376376
// Cache driver extensions
377377
std::unordered_map<std::string, uint32_t> zeDriverExtensionMap;
@@ -1496,7 +1496,7 @@ struct _pi_program : _pi_object {
14961496
// In IL and Object states, this contains the SPIR-V representation of the
14971497
// module. In Native state, it contains the native code.
14981498
std::unique_ptr<uint8_t[]> Code; // Array containing raw IL / native code.
1499-
size_t CodeLength; // Size (bytes) of the array.
1499+
size_t CodeLength{0}; // Size (bytes) of the array.
15001500

15011501
// Used only in IL and Object states. Contains the SPIR-V specialization
15021502
// constants as a map from the SPIR-V "SpecID" to a buffer that contains the

0 commit comments

Comments
 (0)