From fe1392d0895e7104aafe60f8bda17cd568d025e5 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 12 Jul 2020 14:16:19 +0200 Subject: [PATCH] Silence Clang 10 compiler warnings. Fixes #2225. (#2294) --- include/pybind11/detail/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/detail/common.h b/include/pybind11/detail/common.h index 8b609e726..33805e0f9 100644 --- a/include/pybind11/detail/common.h +++ b/include/pybind11/detail/common.h @@ -676,7 +676,7 @@ inline void ignore_unused(const int *) { } #define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) (((PATTERN), void()), ...) #else using expand_side_effects = bool[]; -#define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) pybind11::detail::expand_side_effects{ ((PATTERN), void(), false)..., false } +#define PYBIND11_EXPAND_SIDE_EFFECTS(PATTERN) (void)pybind11::detail::expand_side_effects{ ((PATTERN), void(), false)..., false } #endif PYBIND11_NAMESPACE_END(detail)