Skip to content

Commit afc8e4e

Browse files
authored
Fix unused function compare_equal_helper warning (#603)
1 parent 47ad73a commit afc8e4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/numpy/compare.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ static mp_obj_t compare_function(mp_obj_t x1, mp_obj_t x2, uint8_t op) {
125125
return mp_const_none; // we should never reach this point
126126
}
127127

128+
#if ULAB_NUMPY_HAS_EQUAL | ULAB_NUMPY_HAS_NOTEQUAL
128129
static mp_obj_t compare_equal_helper(mp_obj_t x1, mp_obj_t x2, uint8_t comptype) {
129130
// scalar comparisons should return a single object of mp_obj_t type
130131
mp_obj_t result = compare_function(x1, x2, comptype);
@@ -136,6 +137,7 @@ static mp_obj_t compare_equal_helper(mp_obj_t x1, mp_obj_t x2, uint8_t comptype)
136137
}
137138
return result;
138139
}
140+
#endif
139141

140142
#if ULAB_NUMPY_HAS_CLIP
141143

0 commit comments

Comments
 (0)