summaryrefslogtreecommitdiff
path: root/probes_helper.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-09-20 17:44:16 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-09-20 17:44:48 +0900
commit4ffcadd39cb7061ff501478ed436a56e7f99f3dc (patch)
tree3c62f31ffecf1c27683e5e0e9ab9b6f714046cee /probes_helper.h
parent04c53a1d03130b5cd4a1eea35cab92003a4d0909 (diff)
Fix rb_define_singleton_method warning
for debug counters ``` ../include/ruby/intern.h:1175:137: warning: passing argument 3 of 'rb_define_singleton_method0' from incompatible pointer type [-Wincompatible-pointer-types] #define rb_define_singleton_method(klass, mid, func, arity) rb_define_singleton_method_choose_prototypem3((arity),(func))((klass),(mid),(func),(arity)); ^ ../vm.c:2958:5: note: in expansion of macro 'rb_define_singleton_method' rb_define_singleton_method(rb_cRubyVM, "show_debug_counters", rb_debug_counter_show, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~ ../include/ruby/intern.h:1139:99: note: expected 'VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}' but argument is of type 'VALUE (*)(void) {aka long unsigned int (*)(void)}' __attribute__((__unused__,__weakref__("rb_define_singleton_method"),__nonnull__(2,3)))static void rb_define_singleton_method0 (VALUE,const char*,VALUE(*)(VALUE),int); ```
Diffstat (limited to 'probes_helper.h')
0 files changed, 0 insertions, 0 deletions