8000 Rename to CIRCUITPY_9_10_WARNINGS and turn on warnings for CP9. · jepler/circuitpython@aec1071 · GitHub
  • [go: up one dir, main page]

    Skip to content

    Commit aec1071

    Browse files
    committed
    Rename to CIRCUITPY_9_10_WARNINGS and turn on warnings for CP9.
    1 parent 7c827c7 commit aec1071

    File tree

    2 files changed

    +3
    -3
    lines changed

    2 files changed

    +3
    -3
    lines changed

    py/circuitpy_mpconfig.h

    Lines changed: 2 additions & 2 deletions
    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

    Lines changed: 1 addition & 1 deletion
    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)
    0