Skip to content

Commit dcb5139

Browse files
committed
Quick experiment trying out suggestion by @henryiii
1 parent 16eacbc commit dcb5139

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/pybind11/attr.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,9 @@ template <typename... Args> struct process_attributes {
529529
}
530530
static void precall(function_call &call) {
531531
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(call);
532-
int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::precall(call), 0) ... };
533-
silence_unused_warnings(unused);
532+
// int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::precall(call), 0) ... };
533+
// silence_unused_warnings(unused);
534+
(int []) { 0, (process_attribute<typename std::decay<Args>::type>::precall(call), 0) ... };
534535
}
535536
static void postcall(function_call &call, handle fn_ret) {
536537
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(call, fn_ret);

0 commit comments

Comments
 (0)