Skip to content

Commit ed2ae0d

Browse files
authored
Merge pull request #10137 from eightycc/issue-9596
Remove CIRCUITPY_8_9_WARNINGS and its usage.
2 parents 82caf90 + aec1071 commit ed2ae0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

py/circuitpy_mpconfig.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
// Can be removed once CircuitPython 10 is released.
2121
// Print warnings or not about deprecated names. See objmodule.c.
22-
#ifndef CIRCUITPY_8_9_WARNINGS
23-
#define CIRCUITPY_8_9_WARNINGS (0)
22+
#ifndef CIRCUITPY_9_10_WARNINGS
23+
#define CIRCUITPY_9_10_WARNINGS (1)
2424
#endif
2525

2626
// REPR_C encodes qstrs, 31-bit ints, and 30-bit floats in a single 32-bit word.

py/objmodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
6868
mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);
6969
if (dest[0] == MP_OBJ_NULL) {
7070
// CIRCUITPY-CHANGE
71-
#if CIRCUITPY_8_9_WARNINGS && CIRCUITPY_DISPLAYIO && CIRCUITPY_WARNINGS
71+
#if CIRCUITPY_9_10_WARNINGS && CIRCUITPY_DISPLAYIO && CIRCUITPY_WARNINGS
7272
if (self == &displayio_module) {
7373
#if CIRCUITPY_BUSDISPLAY
7474
if (attr == MP_QSTR_Display) {

0 commit comments

Comments
 (0)