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 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