Skip to content

Commit fccfaed

Browse files
committed
tests: add linking warnings/error
Signed-off-by: Henry Schreiner <[email protected]>
1 parent c1bf55a commit fccfaed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ function(pybind11_enable_warnings target_name)
411411
-Wdeprecated
412412
-Wundef
413413
-Wnon-virtual-dtor)
414+
target_link_options(${target_name} PRIVATE -Werror -Wodr -Wlto-type-mismatch)
414415
if(DEFINED CMAKE_CXX_STANDARD AND NOT CMAKE_CXX_STANDARD VERSION_LESS 20)
415416
target_compile_options(${target_name} PRIVATE -Wpedantic)
416417
endif()

0 commit comments

Comments
 (0)