Skip to content

Commit 99eb129

Browse files
authored
Merge pull request #2373 from IntelPython/fix-coverage-build-warnings
Fix warnings in coverage builds
2 parents 581bb62 + 40d3301 commit 99eb129

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

libsyclinterface/tests/test_sycl_device_interface.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, ChkGetBackendVersion)
610610

611611
TEST_P(TestDPCTLSyclDeviceInterface, ChkGetLocalMemType)
612612
{
613-
DPCTLLocalMemType lmt;
613+
DPCTLLocalMemType lmt = DPCTL_LOCAL_MEM_TYPE_UNKNOWN;
614614
EXPECT_NO_FATAL_FAILURE(lmt = DPCTLDevice_GetLocalMemType(DRef));
615615
EXPECT_TRUE(lmt == DPCTL_LOCAL_MEM_TYPE_NONE ||
616616
lmt == DPCTL_LOCAL_MEM_TYPE_LOCAL ||
@@ -619,7 +619,7 @@ TEST_P(TestDPCTLSyclDeviceInterface, ChkGetLocalMemType)
619619

620620
TEST_P(TestDPCTLSyclDeviceInterface, ChkGetPartitionTypeProperty)
621621
{
622-
DPCTLPartitionPropertyType ptp;
622+
DPCTLPartitionPropertyType ptp = DPCTL_PARTITION_UNKNOWN;
623623
EXPECT_NO_FATAL_FAILURE(ptp = DPCTLDevice_GetPartitionTypeProperty(DRef));
624624
EXPECT_TRUE(
625625
ptp == DPCTL_PARTITION_UNKNOWN || ptp == DPCTL_PARTITION_NO_PARTITION ||
@@ -768,7 +768,8 @@ TEST_P(TestDPCTLSyclDeviceInterface, ChkGetPartitionAffinityDomains)
768768

769769
TEST_P(TestDPCTLSyclDeviceInterface, ChkGetPartitionTypeAffinityDomain)
770770
{
771-
DPCTLPartitionAffinityDomainType ptad;
771+
DPCTLPartitionAffinityDomainType ptad =
772+
DPCTL_PARTITION_AFFINITY_DOMAIN_UNKNOWN;
772773
EXPECT_NO_FATAL_FAILURE(
773774
ptad = DPCTLDevice_GetPartitionTypeAffinityDomain(DRef));
774775
EXPECT_TRUE(ptad == DPCTLPartitionAffinityDomainType::not_applicable ||

0 commit comments

Comments
 (0)