Skip to content

Commit 99014c7

Browse files
committed
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);
1 parent aca879b commit 99014c7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/acl_svm_test.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
// Copyright (C) 2014-2021 Intel Corporation
22
// SPDX-License-Identifier: BSD-3-Clause
33

4-
#pragma warning(push, 0)
4+
#ifdef _MSC_VER
5+
#pragma warning(push)
6+
#pragma warning(disable : 4100) // unreferenced formal parameter
7+
#endif
58
#include <CppUTest/TestHarness.h>
6-
#pragma warning(pop);
9+
#ifdef _MSC_VER
10+
#pragma warning(pop)
11+
#endif
712

813
#include <CL/opencl.h>
914

0 commit comments

Comments
 (0)