Skip to content

Commit ddb7e8c

Browse files
committed
rb_tr_get_sprintf_args() should be static
1 parent dea5c24 commit ddb7e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/c/cext/printf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ char* rb_value_to_str(const VALUE *arg, int showsign) {
3636
return cstr;
3737
}
3838

39-
VALUE rb_tr_get_sprintf_args(va_list args, VALUE types);
39+
static VALUE rb_tr_get_sprintf_args(va_list args, VALUE types);
4040

4141
VALUE rb_tr_vsprintf_new_cstr(char *cstr) {
4242
if (cstr == NULL) {
@@ -106,7 +106,7 @@ enum printf_arg_types {
106106
TYPE_SLONGLONG,
107107
};
108108

109-
VALUE rb_tr_get_sprintf_args(va_list args, VALUE types) {
109+
static VALUE rb_tr_get_sprintf_args(va_list args, VALUE types) {
110110
VALUE ary = rb_ary_new();
111111

112112
long len = RARRAY_LEN(types);

0 commit comments

Comments
 (0)