Skip to content

Commit

Permalink
cherrypick fix (#14407)
Browse files Browse the repository at this point in the history
## Description 

add allow-unused-variable to silence warnings that occur due to
different compilation flags. This is fine as the allows are added to a
wip branch vm-rework

## Test Plan 

How did you test the new or updated feature?

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [ ] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes
  • Loading branch information
wlmyng authored Oct 24, 2023
1 parent 963046d commit 47d9810
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ impl Interpreter {
}
}

#[allow(unused_variables)]
pub fn pre_entrypoint(
plugins: &mut Vec<Box<dyn InterpreterHook>>,
gas_meter: &mut impl GasMeter,
Expand All @@ -167,6 +168,7 @@ impl Interpreter {
Ok(())
}

#[allow(unused_variables)]
pub fn pre_fn(
interpreter: &mut Interpreter,
plugins: &mut Vec<Box<dyn InterpreterHook>>,
Expand All @@ -187,6 +189,7 @@ impl Interpreter {
Ok(())
}

#[allow(unused_variables)]
pub fn post_fn(
_interpreter: &mut Interpreter,
plugins: &mut Vec<Box<dyn InterpreterHook>>,
Expand All @@ -202,6 +205,7 @@ impl Interpreter {
Ok(())
}

#[allow(unused_variables)]
pub fn pre_instr(
interpreter: &mut Interpreter,
plugins: &mut Vec<Box<dyn InterpreterHook>>,
Expand Down Expand Up @@ -230,6 +234,7 @@ impl Interpreter {
Ok(())
}

#[allow(unused_variables)]
pub fn post_instr(
interpreter: &mut Interpreter,
plugins: &mut Vec<Box<dyn InterpreterHook>>,
Expand Down

0 comments on commit 47d9810

Please sign in to comment.