Skip to content

Commit 91d9f2a

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

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/acl_usm_test.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
// compiling for ARM
66
#ifndef __arm__
77

8-
#pragma warning(push, 0)
8+
#ifdef _MSC_VER
9+
#pragma warning(push)
10+
#pragma warning(disable : 4100) // unreferenced formal parameter
11+
#endif
912
#include <CppUTest/TestHarness.h>
10-
#pragma warning(pop);
13+
#ifdef _MSC_VER
14+
#pragma warning(pop)
15+
#endif
1116

1217
#include <CL/opencl.h>
1318

0 commit comments

Comments
 (0)