Skip to content

Commit 3c6e0ee

Browse files
Remove use of designated initializers
This is a c++20 feature, it worked on Linux via gcc extensions Signed-off-by: Daniel Chabrowski [email protected] Related-To: NEO-6591
1 parent 187f772 commit 3c6e0ee

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

shared/source/os_interface/linux/ioctl_helper_prelim.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ UuidRegisterResult IoctlHelperPrelim20::registerUuid(Drm *drm, const std::string
485485
const auto retVal = IoctlHelper::ioctl(drm, PRELIM_DRM_IOCTL_I915_UUID_REGISTER, &uuidControl);
486486

487487
return {
488-
.retVal = retVal,
489-
.handle = uuidControl.handle,
488+
retVal,
489+
uuidControl.handle,
490490
};
491491
}
492492

shared/test/common/libult/linux/drm_query_mock.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class DrmQueryMock : public DrmMock {
3838
}
3939

4040
DrmMockPrelimContext context{
41-
.hwInfo = nullptr,
42-
.rootDeviceEnvironment = rootDeviceEnvironment,
43-
.cacheInfo = getCacheInfo(),
44-
.failRetTopology = failRetTopology,
45-
.supportedCopyEnginesMask = supportedCopyEnginesMask,
46-
.contextDebugSupported = contextDebugSupported,
41+
nullptr,
42+
rootDeviceEnvironment,
43+
getCacheInfo(),
44+
failRetTopology,
45+
supportedCopyEnginesMask,
46+
contextDebugSupported,
4747
};
4848

4949
static constexpr uint32_t maxEngineCount{9};

0 commit comments

Comments
 (0)