Skip to content

Commit 162f9b6

Browse files
committed
Commenting out PYBIND11_WERROR block, for noinline testing.
1 parent 9228524 commit 162f9b6

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

tests/CMakeLists.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -298,22 +298,22 @@ function(pybind11_enable_warnings target_name)
298298
-Wnon-virtual-dtor)
299299
endif()
300300

301-
if(PYBIND11_WERROR)
302-
if(MSVC)
303-
target_compile_options(${target_name} PRIVATE /WX)
304-
elseif(PYBIND11_CUDA_TESTS)
305-
target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings")
306-
elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)")
307-
target_compile_options(${target_name} PRIVATE -Werror)
308-
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
309-
target_compile_options(
310-
${target_name}
311-
PRIVATE
312-
-Werror-all
313-
# "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size"
314-
-diag-disable 11074,11076)
315-
endif()
316-
endif()
301+
#if(PYBIND11_WERROR)
302+
# if(MSVC)
303+
# target_compile_options(${target_name} PRIVATE /WX)
304+
# elseif(PYBIND11_CUDA_TESTS)
305+
# target_compile_options(${target_name} PRIVATE "SHELL:-Werror all-warnings")
306+
# elseif(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang|IntelLLVM)")
307+
# target_compile_options(${target_name} PRIVATE -Werror)
308+
# elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
309+
# target_compile_options(
310+
# ${target_name}
311+
# PRIVATE
312+
# -Werror-all
313+
# # "Inlining inhibited by limit max-size", "Inlining inhibited by limit max-total-size"
314+
# -diag-disable 11074,11076)
315+
# endif()
316+
#endif()
317317

318318
# Needs to be re-added since the ordering requires these to be after the ones above
319319
if(CMAKE_CXX_STANDARD

0 commit comments

Comments
 (0)