Bug 1531512 - Mark unused variables as unused for non-windows. r=kvark
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 01 Mar 2019 04:04:46 +0000
changeset 519806 9519237a1392caed029ea3678143b060d38f512a
parent 519805 45b6b4f345d5465f67fd544dabff3b1fc3702055
child 519807 a1a345331f32ecb54392e116a3b7553f9de8f1d2
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskvark
bugs1531512
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1531512 - Mark unused variables as unused for non-windows. r=kvark rustc 1.33 is smart enough to detect and complain about this. Differential Revision: https://phabricator.services.mozilla.com/D21601
gfx/wr/wrench/src/main.rs
--- a/gfx/wr/wrench/src/main.rs
+++ b/gfx/wr/wrench/src/main.rs
@@ -273,21 +273,21 @@ fn make_window(
                     glutin::Api::OpenGlEs => unsafe {
                         gl::GlesFns::load_with(|symbol| context.get_proc_address(symbol) as *const _)
                     },
                     glutin::Api::WebGl => unimplemented!(),
                 }
             };
 
             if angle {
-                let (window, context) = angle::Context::with_window(
+                let (_window, _context) = angle::Context::with_window(
                     window_builder, context_builder, events_loop
                 ).unwrap();
-                let gl = init(&context);
-                WindowWrapper::Angle(window, context, gl)
+                let gl = init(&_context);
+                WindowWrapper::Angle(_window, _context, gl)
             } else {
                 let window = glutin::GlWindow::new(window_builder, context_builder, events_loop)
                     .unwrap();
                 let gl = init(&window);
                 WindowWrapper::Window(window, gl)
             }
         }
         None => {