Skip to content

Commit 6e44729

Browse files
cyyevertoyxu
andauthored
Add unused variable warning (#1812)
These warnings were found in Pytorch builds and enlarged the logs. Signed-off-by: cyy <[email protected]> Co-authored-by: Yutao Xu <[email protected]>
1 parent bbb1d1a commit 6e44729

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/BuildFlags.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "MSVC"
3535
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
3636
list(APPEND SYCL_HOST_FLAGS -fPIC)
3737
list(APPEND SYCL_HOST_FLAGS -std=c++17)
38+
list(APPEND SYCL_HOST_FLAGS -Wunused-variable)
3839
# SYCL headers warnings
3940
list(APPEND SYCL_HOST_FLAGS -Wno-deprecated-declarations)
4041
list(APPEND SYCL_HOST_FLAGS -Wno-deprecated)

0 commit comments

Comments
 (0)