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.
This commit is contained in:
stijn 2022-03-17 12:49:38 +01:00 committed by Damien George
parent 90aaf2dbef
commit 594c753c27
1 changed files with 5 additions and 1 deletions

View File

@ -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);