Skip to content

Commit 097465c

Browse files
committed
Silence Clang 10 compiler warnings. Fixes pybind#2225.
1 parent 8b9eb96 commit 097465c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ inline void ignore_unused(const int *) { }
676676
#define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) (((PATTERN), void()), ...)
677677
#else
678678
using expand_side_effects = bool[];
679-
#define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) pybind11::detail::expand_side_effects{ ((PATTERN), void(), false)..., false }
679+
#define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) (void)pybind11::detail::expand_side_effects{ ((PATTERN), void(), false)..., false }
680680
#endif
681681

682682
PYBIND11_NAMESPACE_END(detail)

0 commit comments

Comments
 (0)