diff --git a/sycl/source/detail/os_util.cpp b/sycl/source/detail/os_util.cpp index 427da3c7ffcff..05711f2d6c1d9 100644 --- a/sycl/source/detail/os_util.cpp +++ b/sycl/source/detail/os_util.cpp @@ -59,7 +59,7 @@ inline namespace _V1 { namespace detail { #if defined(__INTEL_PREVIEW_BREAKING_CHANGES) -static std::string getDirName(const char *Path) +[[maybe_unused]] static std::string getDirName(const char *Path) #else std::string OSUtil::getDirName(const char *Path) #endif