diff --git a/sycl/test-e2e/CMakeLists.txt b/sycl/test-e2e/CMakeLists.txt index 96018d8b30b62..2379d7859e6a5 100644 --- a/sycl/test-e2e/CMakeLists.txt +++ b/sycl/test-e2e/CMakeLists.txt @@ -60,7 +60,8 @@ if(MSVC AND NOT SYCL_TEST_E2E_STANDALONE) else() set(SYCL_E2E_CLANG_CXX_FLAGS ${CMAKE_CXX_FLAGS}) endif() -list(APPEND SYCL_E2E_CLANG_CXX_FLAGS "-Werror") + +set(SYCL_E2E_CLANG_CXX_FLAGS "${SYCL_E2E_CLANG_CXX_FLAGS} -Werror") if(SYCL_TEST_E2E_STANDALONE) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in" diff --git a/sycl/test-e2e/bindless_images/helpers/sampling.hpp b/sycl/test-e2e/bindless_images/helpers/sampling.hpp index 714dc21941157..51b1a58088094 100644 --- a/sycl/test-e2e/bindless_images/helpers/sampling.hpp +++ b/sycl/test-e2e/bindless_images/helpers/sampling.hpp @@ -662,6 +662,7 @@ read(sycl::range<2> globalSize, sycl::vec coords, float offset, } } assert(false && "Invalid sampler encountered!"); + return {}; } }; // namespace sampling_helpers