diff --git a/sycl/include/sycl/ext/oneapi/experimental/async_alloc/memory_pool_properties.hpp b/sycl/include/sycl/ext/oneapi/experimental/async_alloc/memory_pool_properties.hpp index 89cd11f36fda..da668004f255 100644 --- a/sycl/include/sycl/ext/oneapi/experimental/async_alloc/memory_pool_properties.hpp +++ b/sycl/include/sycl/ext/oneapi/experimental/async_alloc/memory_pool_properties.hpp @@ -23,7 +23,7 @@ namespace property::memory_pool { struct initial_threshold : public sycl::detail::PropertyWithData< sycl::detail::MemPoolInitialThreshold> { initial_threshold(size_t initialThreshold) - : initialThreshold(initialThreshold) {}; + : initialThreshold(initialThreshold){}; size_t get_initial_threshold() { return initialThreshold; } private: @@ -33,7 +33,7 @@ struct initial_threshold : public sycl::detail::PropertyWithData< // Property that determines the maximum size of a memory pool. struct maximum_size : public sycl::detail::PropertyWithData { - maximum_size(size_t maxSize) : maxSize(maxSize) {}; + maximum_size(size_t maxSize) : maxSize(maxSize){}; size_t get_maximum_size() { return maxSize; } private: diff --git a/sycl/source/detail/async_alloc.cpp b/sycl/source/detail/async_alloc.cpp index 57ce7a71b713..658fba159ea8 100644 --- a/sycl/source/detail/async_alloc.cpp +++ b/sycl/source/detail/async_alloc.cpp @@ -148,7 +148,8 @@ __SYCL_EXPORT void async_free(sycl::handler &h, void *ptr) { __SYCL_EXPORT void async_free(const sycl::queue &q, void *ptr, const sycl::detail::code_location &CodeLoc) { - submit(q, [&](sycl::handler &h) { async_free(h, ptr); }, CodeLoc); + submit( + q, [&](sycl::handler &h) { async_free(h, ptr); }, CodeLoc); } } // namespace ext::oneapi::experimental diff --git a/sycl/source/detail/context_impl.cpp b/sycl/source/detail/context_impl.cpp index a8048919c028..5635a933e3d5 100644 --- a/sycl/source/detail/context_impl.cpp +++ b/sycl/source/detail/context_impl.cpp @@ -567,7 +567,7 @@ void context_impl::verifyProps(const property_list &Props) const { std::shared_ptr context_impl::get_default_memory_pool(const context &Context, const device &Device, - const usm::alloc &Kind) { + [[maybe_unused]] const usm::alloc &Kind) { assert(Kind == usm::alloc::device);