8000 Merge pull request #9096 from dhalbert/9.0.x-disable-displayio-warnings · bablokb/circuitpython@6d1b940 · GitHub < 8000 /head>
[go: up one dir, main page]

Skip to content

Commit 6d1b940

Browse files
authored
Merge pull request adafruit#9096 from dhalbert/9.0.x-disable-displayio-warnings
Disable 9.0.0 displayio warnings
2 parents 7d30ef3 + 999a4ac commit 6d1b940

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

py/circuitpy_mpconfig.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
// Always 1: defined in circuitpy_mpconfig.mk
3939
// #define CIRCUITPY (1)
4040

41+
// Can be removed once CircuitPython 10 is released.
42+
// Print warnings or not about deprecated names. See objmodule.c.
43+
#ifndef CIRCUITPY_8_9_WARNINGS
44+
#define CIRCUITPY_8_9_WARNINGS (0)
45+
#endif
46+
4147
// REPR_C encodes qstrs, 31-bit ints, and 30-bit floats in a single 32-bit word.
4248
#ifndef MICROPY_OBJ_REPR
4349
#define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_C)

py/objmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ STATIC void module_attr_try_delegation(mp_obj_t self_in, qstr attr, mp_obj_t *de
6666
STATIC void module_attr(mp_obj_t self_in, qstr attr, mp_obj_t *dest) {
6767
mp_obj_module_t *self = MP_OBJ_TO_PTR(self_in);
6868
if (dest[0] == MP_OBJ_NULL) {
69-
#if CIRCUITPY_DISPLAYIO && CIRCUITPY_WARNINGS
69+
#if CIRCUITPY_8_9_WARNINGS && CIRCUITPY_DISPLAYIO && CIRCUITPY_WARNINGS
7070
if (self == &displayio_module) {
7171
#if CIRCUITPY_BUSDISPLAY
7272
if (attr == MP_QSTR_Display) {

0 commit comments

Comments
 (0)
0