We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16eacbc commit dcb5139Copy full SHA for dcb5139
include/pybind11/attr.h
@@ -529,8 +529,9 @@ template <typename... Args> struct process_attributes {
529
}
530
static void precall(function_call &call) {
531
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);
+ // int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::precall(call), 0) ... };
+ // silence_unused_warnings(unused);
534
+ (int []) { 0, (process_attribute<typename std::decay<Args>::type>::precall(call), 0) ... };
535
536
static void postcall(function_call &call, handle fn_ret) {
537
PYBIND11_WORKAROUND_INCORRECT_MSVC_C4100(call, fn_ret);
0 commit comments