Merge pull request #8531 from tannewt/fix_warnings

Switch warnings to mp_rom_error_text_t
This commit is contained in:
Scott Shawcroft 2023-10-27 10:15:12 -07:00 committed by GitHub
commit a501a21887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ void common_hal_warnings_warn(const char *message, const mp_obj_type_t *category
mp_printf(MICROPY_ERROR_PRINTER, "%q: %s\n", category->name, message);
}
void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...) {
void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...) {
warnings_action_t action = MP_STATE_THREAD(warnings_action);
if (action == WARNINGS_IGNORE) {
return;

View File

@ -26,4 +26,4 @@
#pragma once
void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...);
void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...);