File tree Expand file tree Collapse file tree 19 files changed +5
-48
lines changed Expand file tree Collapse file tree 19 files changed +5
-48
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,12 @@ define_property(GLOBAL PROPERTY SYCL_TOOLCHAIN_INSTALL_COMPONENTS
108
108
if (MSVC )
109
109
set (CMAKE_CXX_FLAGS "/W4 ${CMAKE_CXX_FLAGS} " )
110
110
else ()
111
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-deprecated-declarations " )
111
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra" )
112
112
endif ()
113
113
114
114
if (SYCL_ENABLE_WERROR )
115
115
if (MSVC )
116
116
set (CMAKE_CXX_FLAGS "/WX ${CMAKE_CXX_FLAGS} " )
117
- add_definitions (
118
- -wd4996 # Suppress 'function': was declared deprecated'
119
- )
120
117
else ()
121
118
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror" )
122
119
endif ()
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ if (WIN32 AND "${build_type_lower}" MATCHES "debug")
8
8
set (sycl_lib sycld )
9
9
endif ()
10
10
11
- # Disable aspect::image warning .
12
- target_compile_definitions (sycl-ls PRIVATE SYCL_DISABLE_IMAGE_ASPECT_WARNING )
11
+ # Disable aspect::image & deprecation warnings .
12
+ target_compile_definitions (sycl-ls PRIVATE SYCL_DISABLE_IMAGE_ASPECT_WARNING SYCL2020_DISABLE_DEPRECATION_WARNINGS )
13
13
14
14
target_link_libraries (sycl-ls
15
15
PRIVATE
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ foreach(flag_var
8
8
string (REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var} }" )
9
9
endforeach ()
10
10
11
+ add_compile_definitions (SYCL2020_DISABLE_DEPRECATION_WARNINGS )
12
+
11
13
# suppress warnings which came from Google Test sources
12
14
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG )
13
15
add_compile_options ("-Wno-suggest-override" )
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
9
#define __SYCL_INTERNAL_API
11
10
12
11
#include < detail/context_impl.hpp>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < detail/device_image_impl.hpp>
12
9
#include < sycl/sycl.hpp>
13
10
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
9
-
10
8
#include < helpers/TestKernel.hpp>
11
9
#include < helpers/UrMock.hpp>
12
10
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
9
-
10
8
#include < sycl/sycl.hpp>
11
9
12
10
#include < gtest/gtest.h>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < gtest/gtest.h>
12
9
#include < helpers/UrMock.hpp>
13
10
#include < sycl/sycl.hpp>
Original file line number Diff line number Diff line change 8
8
9
9
// All these tests are temporarily disabled, since they need to be rewrited
10
10
// after the sycl::program class removal to use the kernel_bundle instead.
11
-
12
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
13
-
14
11
#include " detail/context_impl.hpp"
15
12
#include " detail/kernel_program_cache.hpp"
16
13
#include " sycl/detail/ur.hpp"
Original file line number Diff line number Diff line change 6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
// This file contains tests covering eviction in in-memory program cache.
9
-
10
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
11
-
12
9
#include " ../thread_safety/ThreadUtils.h"
13
10
#include " detail/context_impl.hpp"
14
11
#include " detail/kernel_program_cache.hpp"
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===---------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
8
#ifndef __SYCL_INTERNAL_API
11
9
#define __SYCL_INTERNAL_API
12
10
#endif
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < detail/context_impl.hpp>
12
9
#include < gtest/gtest.h>
13
10
#include < helpers/UrMock.hpp>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < detail/context_impl.hpp>
12
9
#include < gtest/gtest.h>
13
10
#include < helpers/UrMock.hpp>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include " detail/context_impl.hpp"
12
9
#include " detail/kernel_bundle_impl.hpp"
13
10
#include " detail/kernel_program_cache.hpp"
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include " detail/context_impl.hpp"
12
9
#include " detail/kernel_bundle_impl.hpp"
13
10
#include " detail/kernel_program_cache.hpp"
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
8
#include " gtest/internal/gtest-internal.h"
10
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
11
9
12
10
#include < detail/config.hpp>
13
11
#include < detail/context_impl.hpp>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < helpers/MockDeviceImage.hpp>
12
9
#include < helpers/MockKernelInfo.hpp>
13
10
#include < helpers/UrMock.hpp>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < detail/config.hpp>
12
9
#include < detail/program_manager/program_manager.hpp>
13
10
#include < helpers/UrMock.hpp>
Original file line number Diff line number Diff line change 5
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
-
9
- #define SYCL2020_DISABLE_DEPRECATION_WARNINGS
10
-
11
8
#include < detail/config.hpp>
12
9
#include < detail/program_manager/program_manager.hpp>
13
10
#include < helpers/UrMock.hpp>
You can’t perform that action at this time.
0 commit comments