From 37867c27f77c6cc3ff431b53ebd23ad3726cc4b1 Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Tue, 12 Nov 2024 03:12:52 -0800 Subject: [PATCH] [SYCL][E2E] Avoid unused argument warning for imf_fp16_trivial_test The imf_fp16_trivial_test has a clangxx invocation with only object files. On Windows, this invocation may have /EHsc, which in this case will be ignored. This issues a warning, which in turn becomes an error when -Werror is set. To avoid this, we ignore unused-argument warnings for this specific invocation. Signed-off-by: Larsen, Steffen --- sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp b/sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp index 461ac69dd454a..24ea52f391695 100644 --- a/sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp +++ b/sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp @@ -5,7 +5,7 @@ // RUN: %{build} %{mathflags} -c -DSOURCE1 -o %t1.o // RUN: %{build} %{mathflags} -c -DSOURCE2 -o %t2.o -// RUN: %clangxx -fsycl %t1.o %t2.o -o %t.out +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl %t1.o %t2.o -o %t.out // RUN: %{run} %t.out // UNSUPPORTED: cuda, hip