8000 Merge pull request #8531 from tannewt/fix_warnings · tannewt/circuitpython@a501a21 · GitHub
[go: up one dir, main page]

Skip to content

Commit a501a21

Browse files
authored
Merge pull request micropython#8531 from tannewt/fix_warnings
Switch warnings to mp_rom_error_text_t
2 parents 32b6ac7 + 523d95e commit a501a21

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared-module/warnings/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void common_hal_warnings_warn(const char *message, const mp_obj_type_t *category
4848
mp_printf(MICROPY_ERROR_PRINTER, "%q: %s\n", category->name, message);
4949
}
5050

51-
void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...) {
51+
void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...) {
5252
warnings_action_t action = MP_STATE_THREAD(warnings_action);
5353
if (action == WARNINGS_IGNORE) {
5454
return;

shared-module/warnings/__init__.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626

2727
#pragma once
2828

29-
void warnings_warn(const mp_obj_type_t *category, const compressed_string_t *message, ...);
29+
void warnings_warn(const mp_obj_type_t *category, mp_rom_error_text_t message, ...);

0 commit comments

Comments
 (0)
0