Skip to content

Commit d598d89

Browse files
committed
silence warning
1 parent a8cd479 commit d598d89

File tree

1 file changed

+5
-1
lines changed
  • ext/libdatadog_api

1 file changed

+5
-1
lines changed

ext/libdatadog_api/di.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
#include <stdbool.h>
33
#include "ruby_internal.h"
44

5+
#ifndef DDTRACE_UNUSED
6+
#define DDTRACE_UNUSED __attribute__((unused))
7+
#endif
8+
59
#define IMEMO_TYPE_ISEQ 7
610

711
struct ddtrace_di_os_each_struct {
@@ -45,7 +49,7 @@ ddtrace_di_os_obj_of_i(void *vstart, void *vend, size_t stride, void *data)
4549
return 0;
4650
}
4751

48-
static VALUE loaded_file_iseqs(VALUE self) {
52+
static VALUE loaded_file_iseqs(DDTRACE_UNUSED VALUE _self) {
4953
struct ddtrace_di_os_each_struct oes;
5054

5155
oes.array = rb_ary_new();

0 commit comments

Comments
 (0)