mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
quench warnings (closes #69)
This commit is contained in:
parent
48548ea4a5
commit
2983d5e1de
@ -255,19 +255,19 @@ template <int Nurse, int Patient> struct process_attribute<keep_alive<Nurse, Pat
|
||||
template <typename... Args> struct process_attributes {
|
||||
static void init(const Args&... args, function_record *r) {
|
||||
int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::init(args, r), 0) ... };
|
||||
(void) unused;
|
||||
(void) unused; (void) r;
|
||||
}
|
||||
static void init(const Args&... args, type_record *r) {
|
||||
int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::init(args, r), 0) ... };
|
||||
(void) unused;
|
||||
(void) unused; (void) r;
|
||||
}
|
||||
static void precall(handle fn_args) {
|
||||
int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::precall(fn_args), 0) ... };
|
||||
(void) unused;
|
||||
(void) unused; (void) fn_args;
|
||||
}
|
||||
static void postcall(handle fn_args, handle fn_ret) {
|
||||
int unused[] = { 0, (process_attribute<typename std::decay<Args>::type>::postcall(fn_args, fn_ret), 0) ... };
|
||||
(void) unused;
|
||||
(void) unused; (void) fn_args; (void) fn_ret;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -22,6 +22,9 @@
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-parameter"
|
||||
# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
# if __GNUC__ >= 4
|
||||
# pragma GCC diagnostic ignored "-Wno-invalid-offsetof"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "attr.h"
|
||||
|
Loading…
Reference in New Issue
Block a user