• Emil Renner Berthing's avatar
    py, extmod: Add explicit initializers for default values. · 9aa58cf8
    Emil Renner Berthing authored
    When compiling with -Wextra which includes -Wmissing-field-initializers
    GCC will warn that the defval field of mp_arg_val_t is not initialized.
    This is just a warning as it is defined to be zero initialized, but since
    it is a union it makes sense to be explicit about which member we're
    going to use, so add the explicit initializers and get rid of the
    warning.
    9aa58cf8
machine_i2c.c 24.8 KB