Skip to content

Commit 42f4bd8

Browse files
committed
Suppress compiler warnings
1 parent 24a577b commit 42f4bd8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ext/enumerable/statistics/extension/statistics.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@ enum_sum_count(VALUE obj, VALUE init, VALUE *sum_ptr, long *count_ptr)
11481148
*count_ptr = memo.count;
11491149
}
11501150

1151+
#ifndef HAVE_ENUM_SUM
11511152
/* call-seq:
11521153
* enum.sum
11531154
*
@@ -1172,6 +1173,7 @@ enum_sum(int argc, VALUE* argv, VALUE obj)
11721173

11731174
return sum;
11741175
}
1176+
#endif
11751177

11761178
struct enum_mean_variance_memo {
11771179
int block_given;

0 commit comments

Comments
 (0)