py/bc.h: Fix C++20 compilation with "volatile".

C++20 is deprecating several usages of the volatile keyword so remove this
one affected case in the codebase which causes such warning.
pull/8462/head
stijn 2022-03-17 12:49:38 +01:00 zatwierdzone przez Damien George
rodzic 90aaf2dbef
commit 594c753c27
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -262,7 +262,11 @@ mp_uint_t mp_decode_uint(const byte **ptr);
mp_uint_t mp_decode_uint_value(const byte *ptr);
const byte *mp_decode_uint_skip(const byte *ptr);
mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state, volatile mp_obj_t inject_exc);
mp_vm_return_kind_t mp_execute_bytecode(mp_code_state_t *code_state,
#ifndef __cplusplus
volatile
#endif
mp_obj_t inject_exc);
mp_code_state_t *mp_obj_fun_bc_prepare_codestate(mp_obj_t func, size_t n_args, size_t n_kw, const mp_obj_t *args);
void mp_setup_code_state(mp_code_state_t *code_state, size_t n_args, size_t n_kw, const mp_obj_t *args);
void mp_bytecode_print(const mp_print_t *print, const struct _mp_raw_code_t *rc, const mp_module_constants_t *cm);