From bd151737dc79f6cb08cfd8f8758a4474331d4ec2 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Fri, 18 Feb 2022 17:01:58 -0500 Subject: [PATCH 1/2] acl_svm_test: fix GCC warning: ignoring #pragma warning Guard suppression of MVSC unreferenced formal parameter warning. https://github.com/intel/fpga-runtime-for-opencl/blob/aca879be71ca8f7e06a9d5bafbe5c79820bb9a3d/test/acl_command_queue_test.cpp#L4-L11 [92/113] Building CXX object test/CMakeFiles/acl_test.dir/acl_svm_test.cpp.o ../test/acl_svm_test.cpp:4:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(push, 0) ../test/acl_svm_test.cpp:6:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(pop); --- test/acl_svm_test.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/acl_svm_test.cpp b/test/acl_svm_test.cpp index 6d2a456b..37e64b96 100644 --- a/test/acl_svm_test.cpp +++ b/test/acl_svm_test.cpp @@ -1,9 +1,14 @@ // Copyright (C) 2014-2021 Intel Corporation // SPDX-License-Identifier: BSD-3-Clause -#pragma warning(push, 0) +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4100) // unreferenced formal parameter +#endif #include -#pragma warning(pop); +#ifdef _MSC_VER +#pragma warning(pop) +#endif #include From 038bdfe3bde9de6a894647e8d76ac5d5d85552e3 Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Fri, 18 Feb 2022 17:01:58 -0500 Subject: [PATCH 2/2] acl_usm_test: fix GCC warning: ignoring #pragma warning Guard suppression of MVSC unreferenced formal parameter warning. https://github.com/intel/fpga-runtime-for-opencl/blob/aca879be71ca8f7e06a9d5bafbe5c79820bb9a3d/test/acl_command_queue_test.cpp#L4-L11 [106/113] Building CXX object test/CMakeFiles/acl_test.dir/acl_usm_test.cpp.o ../test/acl_usm_test.cpp:8:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(push, 0) ../test/acl_usm_test.cpp:10:0: warning: ignoring #pragma warning [-Wunknown-pragmas] #pragma warning(pop); --- test/acl_usm_test.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/acl_usm_test.cpp b/test/acl_usm_test.cpp index 12c0720f..e1f89ecc 100644 --- a/test/acl_usm_test.cpp +++ b/test/acl_usm_test.cpp @@ -5,9 +5,14 @@ // compiling for ARM #ifndef __arm__ -#pragma warning(push, 0) +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4100) // unreferenced formal parameter +#endif #include -#pragma warning(pop); +#ifdef _MSC_VER +#pragma warning(pop) +#endif #include