Skip to content

Commit e7b2f2f

Browse files
committed
ignore return std move clang
Signed-off-by: Michael Carlstrom <[email protected]>
1 parent 1587448 commit e7b2f2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/pybind11/cast.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1940,7 +1940,12 @@ typing::Tuple<Args...> make_tuple(Args &&...args_) {
19401940
for (auto &arg_value : args) {
19411941
PyTuple_SET_ITEM(result.ptr(), counter++, arg_value.release().ptr());
19421942
}
1943+
PYBIND11_WARNING_PUSH
1944+
#ifdef PYBIND11_DETECTED_CLANG_WITH_MISLEADING_CALL_STD_MOVE_EXPLICITLY_WARNING
1945+
PYBIND11_WARNING_DISABLE_CLANG("-Wreturn-std-move")
1946+
#endif
19431947
return result;
1948+
PYBIND11_WARNING_POP
19441949
}
19451950

19461951
/// \ingroup annotations

0 commit comments

Comments
 (0)