зеркало из https://github.com/mozilla/gecko-dev.git
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 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
20604119b5
Коммит
a23137f08f
|
@ -278,11 +278,11 @@ fn make_window(
|
|||
};
|
||||
|
||||
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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче