Skip to content

Commit

Permalink
[SYCL][L0] Silence Coverity false-postive about 'Uninitialized scalar…
Browse files Browse the repository at this point in the history
… field (UNINIT_CTOR)' (#7249)

It doesn't fix any error, the fields were not used while not initialized

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
  • Loading branch information
smaslov-intel authored Nov 1, 2022
1 parent 37a74c7 commit a776f3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sycl/plugins/level_zero/pi_level_zero.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ struct _pi_platform {
// Cache versions info from zeDriverGetProperties.
std::string ZeDriverVersion;
std::string ZeDriverApiVersion;
ze_api_version_t ZeApiVersion;
ze_api_version_t ZeApiVersion{};

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

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

0 comments on commit a776f3c

Please sign in to comment.