From 5f6319ad47776d2a515feadbbedc871dc0857946 Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Thu, 22 Jun 2023 12:45:09 +0200 Subject: [PATCH 1/6] fix unused-parameter warning in samples --- samples/core/enumopencl/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/core/enumopencl/main.cpp b/samples/core/enumopencl/main.cpp index ee180538..5d050107 100644 --- a/samples/core/enumopencl/main.cpp +++ b/samples/core/enumopencl/main.cpp @@ -67,6 +67,9 @@ static cl_int PrintDeviceInfoSummary(const std::vector devices) int main(int argc, char** argv) { + (void) argc; + (void**) argv; + std::vector platforms; cl::Platform::get(&platforms); std::cout << "Enumerated " << platforms.size() << " platforms.\n\n"; From 28f1bda2eb1848f53eb0691fb79c30de8f3c45f8 Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Thu, 22 Jun 2023 12:48:46 +0200 Subject: [PATCH 2/6] Revert "fix unused-parameter warning in samples" This reverts commit 5f6319ad47776d2a515feadbbedc871dc0857946. --- samples/core/enumopencl/main.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/samples/core/enumopencl/main.cpp b/samples/core/enumopencl/main.cpp index 5d050107..ee180538 100644 --- a/samples/core/enumopencl/main.cpp +++ b/samples/core/enumopencl/main.cpp @@ -67,9 +67,6 @@ static cl_int PrintDeviceInfoSummary(const std::vector devices) int main(int argc, char** argv) { - (void) argc; - (void**) argv; - std::vector platforms; cl::Platform::get(&platforms); std::cout << "Enumerated " << platforms.size() << " platforms.\n\n"; From fa4f8990e551bfe7523ceb8e721029adc355eef5 Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Thu, 22 Jun 2023 12:51:37 +0200 Subject: [PATCH 3/6] fix unused-parameter warning in samples --- samples/core/enumopencl/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/core/enumopencl/main.cpp b/samples/core/enumopencl/main.cpp index ee180538..5d050107 100644 --- a/samples/core/enumopencl/main.cpp +++ b/samples/core/enumopencl/main.cpp @@ -67,6 +67,9 @@ static cl_int PrintDeviceInfoSummary(const std::vector devices) int main(int argc, char** argv) { + (void) argc; + (void**) argv; + std::vector platforms; cl::Platform::get(&platforms); std::cout << "Enumerated " << platforms.size() << " platforms.\n\n"; From b303ce571f5aeda8685230a3bcdf391b33987324 Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Thu, 29 Jun 2023 13:00:01 +0200 Subject: [PATCH 4/6] fixed formatting issue --- samples/core/enumopencl/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/core/enumopencl/main.cpp b/samples/core/enumopencl/main.cpp index 5d050107..8412a306 100644 --- a/samples/core/enumopencl/main.cpp +++ b/samples/core/enumopencl/main.cpp @@ -67,8 +67,8 @@ static cl_int PrintDeviceInfoSummary(const std::vector devices) int main(int argc, char** argv) { - (void) argc; - (void**) argv; + (void)argc; + (void**)argv; std::vector platforms; cl::Platform::get(&platforms); From 4f00bf47b643019940fafe2e1a24729db781ce3b Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Thu, 29 Jun 2023 15:41:18 +0200 Subject: [PATCH 5/6] removed main parameters names --- samples/core/enumopencl/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/core/enumopencl/main.cpp b/samples/core/enumopencl/main.cpp index 8412a306..0d1f565f 100644 --- a/samples/core/enumopencl/main.cpp +++ b/samples/core/enumopencl/main.cpp @@ -65,10 +65,8 @@ static cl_int PrintDeviceInfoSummary(const std::vector devices) return CL_SUCCESS; } -int main(int argc, char** argv) +int main(int, char**) { - (void)argc; - (void**)argv; std::vector platforms; cl::Platform::get(&platforms); From fd5c1ebd73f0ab43960f71dbc6f1d02ff2b12ac9 Mon Sep 17 00:00:00 2001 From: Bogumil Sapinski Date: Thu, 6 Jul 2023 09:47:19 +0200 Subject: [PATCH 6/6] formatting --- samples/core/enumopencl/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/samples/core/enumopencl/main.cpp b/samples/core/enumopencl/main.cpp index 0d1f565f..74669f14 100644 --- a/samples/core/enumopencl/main.cpp +++ b/samples/core/enumopencl/main.cpp @@ -67,7 +67,6 @@ static cl_int PrintDeviceInfoSummary(const std::vector devices) int main(int, char**) { - std::vector platforms; cl::Platform::get(&platforms); std::cout << "Enumerated " << platforms.size() << " platforms.\n\n";