Skip to content

Commit 2ffafb9

Browse files
author
Alexander Batashev
authored
[SYCL][NFC] Fix warnings reported by Clang (#3050)
1 parent f930a01 commit 2ffafb9

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

sycl/include/CL/sycl/INTEL/online_compiler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ template <source_language Lang> class online_compiler {
9494
// TODO: the initial version generates the generic code (SKL now), need
9595
// to do additional device::info calls to determine the device by it's
9696
// features.
97-
online_compiler(const sycl::device &dev)
97+
online_compiler(const sycl::device &)
9898
: OutputFormat(compiled_code_format::spir_v), OutputFormatVersion({0, 0}),
9999
DeviceType(sycl::info::device_type::all), DeviceArch(device_arch::any),
100100
Is64Bit(true), DeviceStepping("") {}

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5525,6 +5525,7 @@ pi_result piPluginInit(pi_plugin *PluginInit) {
55255525
// It can include all the jobs to tear down resources before
55265526
// the plugin is unloaded from memory.
55275527
pi_result piTearDown(void *PluginParameter) {
5528+
(void)PluginParameter;
55285529
// reclaim pi_platform objects here since we don't have piPlatformRelease.
55295530
for (pi_platform &Platform : *PiPlatformsCache) {
55305531
delete Platform;

sycl/plugins/opencl/pi_opencl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,10 @@ pi_result piextProgramGetNativeHandle(pi_program program,
11811181
// This API is called by Sycl RT to notify the end of the plugin lifetime.
11821182
// TODO: add a global variable lifetime management code here (see
11831183
// pi_level_zero.cpp for reference) Currently this is just a NOOP.
1184-
pi_result piTearDown(void *PluginParameter) { return PI_SUCCESS; }
1184+
pi_result piTearDown(void *PluginParameter) {
1185+
(void)PluginParameter;
1186+
return PI_SUCCESS;
1187+
}
11851188

11861189
pi_result piPluginInit(pi_plugin *PluginInit) {
11871190
int CompareVersions = strcmp(PluginInit->PiVersion, SupportedVersion);

sycl/source/detail/device_info.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,8 @@ static bool is_sycl_partition_property(info::partition_property PP) {
279279
case info::partition_property::partition_by_counts:
280280
case info::partition_property::partition_by_affinity_domain:
281281
return true;
282-
default:
283-
return false;
284282
}
283+
return false;
285284
}
286285

287286
// Specialization for partition properties, variable OpenCL return size

sycl/source/detail/plugin_printers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void printArgs(Arg0 arg0, Args... args) {
128128
}
129129

130130
template <typename T> struct printOut {
131-
printOut(T val) {}
131+
printOut(T) {}
132132
}; // Do nothing
133133

134134
template <> struct printOut<PiEvent *> {

0 commit comments

Comments
 (0)