From c46d6b7269ec3fc261cb80a514af40f48ade3568 Mon Sep 17 00:00:00 2001 From: Johnnie Birch <45402135+jlb6740@users.noreply.github.com> Date: Wed, 6 Nov 2019 16:21:12 -0800 Subject: [PATCH] Removes build warnings for usused code for lightbeam build (#493) --- lightbeam/src/backend.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightbeam/src/backend.rs b/lightbeam/src/backend.rs index b77fdb9d34..6e22bc7f80 100644 --- a/lightbeam/src/backend.rs +++ b/lightbeam/src/backend.rs @@ -616,6 +616,7 @@ struct RelocateAccess { pub struct TranslatedCodeSection { exec_buf: ExecutableBuffer, func_starts: Vec, + #[allow(dead_code)] relocatable_accesses: Vec, op_offset_map: Vec<(AssemblyOffset, Box)>, } @@ -5056,7 +5057,7 @@ impl<'this, M: ModuleContext> Context<'this, M> { // TODO: This inefficiently duplicates registers but it's not really possible // to double up stack space right now. /// Saves volatile (i.e. caller-saved) registers before a function call, if they are used. - fn save_volatile(&mut self, bounds: impl std::ops::RangeBounds) { + fn save_volatile(&mut self, _bounds: impl std::ops::RangeBounds) { self.save_regs(SCRATCH_REGS, ..); }