diff --git a/opencl/test/unit_test/api/cl_set_kernel_arg_svm_pointer_tests.inl b/opencl/test/unit_test/api/cl_set_kernel_arg_svm_pointer_tests.inl index 4d796aa12e..b7904335bb 100644 --- a/opencl/test/unit_test/api/cl_set_kernel_arg_svm_pointer_tests.inl +++ b/opencl/test/unit_test/api/cl_set_kernel_arg_svm_pointer_tests.inl @@ -17,11 +17,6 @@ using namespace NEO; class KernelArgSvmFixture : public ApiFixture<>, public DeviceFixture { - public: - KernelArgSvmFixture() - : pCrossThreadData{0} { - } - protected: void SetUp() override { ApiFixture::SetUp(); @@ -64,9 +59,9 @@ class KernelArgSvmFixture : public ApiFixture<>, public DeviceFixture { cl_int retVal = CL_SUCCESS; MockKernel *pMockKernel = nullptr; std::unique_ptr pKernelInfo; - SKernelBinaryHeaderCommon kernelHeader; - char pSshLocal[64]; - char pCrossThreadData[64]; + SKernelBinaryHeaderCommon kernelHeader{}; + char pSshLocal[64]{}; + char pCrossThreadData[64]{}; }; typedef Test clSetKernelArgSVMPointerTests; diff --git a/opencl/test/unit_test/offline_compiler/offline_compiler_tests.h b/opencl/test/unit_test/offline_compiler/offline_compiler_tests.h index d9c6ec104b..36890da0eb 100644 --- a/opencl/test/unit_test/offline_compiler/offline_compiler_tests.h +++ b/opencl/test/unit_test/offline_compiler/offline_compiler_tests.h @@ -18,31 +18,21 @@ namespace NEO { class OfflineCompilerTests : public ::testing::Test { public: - OfflineCompilerTests() : pOfflineCompiler(nullptr), - retVal(SUCCESS) { - oclocArgHelperWithoutInput = std::make_unique(); - // ctor - } - - OfflineCompiler *pOfflineCompiler; - int retVal; - std::unique_ptr oclocArgHelperWithoutInput; + OfflineCompiler *pOfflineCompiler = nullptr; + int retVal = SUCCESS; + std::unique_ptr oclocArgHelperWithoutInput = std::make_unique(); }; class MultiCommandTests : public ::testing::Test { public: - MultiCommandTests() : pMultiCommand(nullptr), - retVal(SUCCESS) { - oclocArgHelperWithoutInput = std::make_unique(); - } void createFileWithArgs(const std::vector &, int numOfBuild); void deleteFileWithArgs(); void deleteOutFileList(); MultiCommand *pMultiCommand = nullptr; std::string nameOfFileWithArgs; std::string outFileList; - int retVal; - std::unique_ptr oclocArgHelperWithoutInput; + int retVal = SUCCESS; + std::unique_ptr oclocArgHelperWithoutInput = std::make_unique(); }; void MultiCommandTests::createFileWithArgs(const std::vector &singleArgs, int numOfBuild) {