Skip to content

Commit ca74f28

Browse files
committed
modmath: Remove stray "pragma GCC diagnostic pop"
This caused an error when building on macos: ``` ../../py/modmath.c:247:36: error: pragma diagnostic pop could not pop, no matching push [-Werror,-Wunknown-pragmas] #pragma GCC diagnostic pop ^ 1 error generated. ``` The pragma was half-removed during the merge of micropython.
1 parent 256fcd6 commit ca74f28

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

py/modmath.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ STATIC mp_obj_t mp_math_log(size_t n_args, const mp_obj_t *args) {
244244
if (base <= (mp_float_t)0.0) {
245245
math_error();
246246
} else if (base == (mp_float_t)1.0) {
247-
#pragma GCC diagnostic pop
248247
mp_raise_msg(&mp_type_ZeroDivisionError, MP_ERROR_TEXT("division by zero"));
249248
}
250249
return mp_obj_new_float(l / MICROPY_FLOAT_C_FUN(log)(base));

0 commit comments

Comments
 (0)