diff --git a/sycl/include/CL/sycl/INTEL/online_compiler.hpp b/sycl/include/CL/sycl/INTEL/online_compiler.hpp index f8bb63bc79dc5..53f1b7efbab07 100644 --- a/sycl/include/CL/sycl/INTEL/online_compiler.hpp +++ b/sycl/include/CL/sycl/INTEL/online_compiler.hpp @@ -94,7 +94,7 @@ template class online_compiler { // TODO: the initial version generates the generic code (SKL now), need // to do additional device::info calls to determine the device by it's // features. - online_compiler(const sycl::device &dev) + online_compiler(const sycl::device &) : OutputFormat(compiled_code_format::spir_v), OutputFormatVersion({0, 0}), DeviceType(sycl::info::device_type::all), DeviceArch(device_arch::any), Is64Bit(true), DeviceStepping("") {} diff --git a/sycl/plugins/level_zero/pi_level_zero.cpp b/sycl/plugins/level_zero/pi_level_zero.cpp index 604cc595b0dff..50d449cb8b808 100644 --- a/sycl/plugins/level_zero/pi_level_zero.cpp +++ b/sycl/plugins/level_zero/pi_level_zero.cpp @@ -5525,6 +5525,7 @@ pi_result piPluginInit(pi_plugin *PluginInit) { // It can include all the jobs to tear down resources before // the plugin is unloaded from memory. pi_result piTearDown(void *PluginParameter) { + (void)PluginParameter; // reclaim pi_platform objects here since we don't have piPlatformRelease. for (pi_platform &Platform : *PiPlatformsCache) { delete Platform; diff --git a/sycl/plugins/opencl/pi_opencl.cpp b/sycl/plugins/opencl/pi_opencl.cpp index 6ae41a09d15e7..99d687724d74b 100644 --- a/sycl/plugins/opencl/pi_opencl.cpp +++ b/sycl/plugins/opencl/pi_opencl.cpp @@ -1181,7 +1181,10 @@ pi_result piextProgramGetNativeHandle(pi_program program, // This API is called by Sycl RT to notify the end of the plugin lifetime. // TODO: add a global variable lifetime management code here (see // pi_level_zero.cpp for reference) Currently this is just a NOOP. -pi_result piTearDown(void *PluginParameter) { return PI_SUCCESS; } +pi_result piTearDown(void *PluginParameter) { + (void)PluginParameter; + return PI_SUCCESS; +} pi_result piPluginInit(pi_plugin *PluginInit) { int CompareVersions = strcmp(PluginInit->PiVersion, SupportedVersion); diff --git a/sycl/source/detail/device_info.hpp b/sycl/source/detail/device_info.hpp index 38039b4986558..bf3eb0561ef7a 100644 --- a/sycl/source/detail/device_info.hpp +++ b/sycl/source/detail/device_info.hpp @@ -279,9 +279,8 @@ static bool is_sycl_partition_property(info::partition_property PP) { case info::partition_property::partition_by_counts: case info::partition_property::partition_by_affinity_domain: return true; - default: - return false; } + return false; } // Specialization for partition properties, variable OpenCL return size diff --git a/sycl/source/detail/plugin_printers.hpp b/sycl/source/detail/plugin_printers.hpp index dbbd827d09c11..b28dc24dcc472 100644 --- a/sycl/source/detail/plugin_printers.hpp +++ b/sycl/source/detail/plugin_printers.hpp @@ -128,7 +128,7 @@ void printArgs(Arg0 arg0, Args... args) { } template struct printOut { - printOut(T val) {} + printOut(T) {} }; // Do nothing template <> struct printOut {