From 340fc201bd6eaabc6b8df2f25bed70aca469967c Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Wed, 13 Sep 2017 12:13:40 +0200 Subject: [PATCH] redraw_fixer: a couple of style fixes Signed-off-by: Marcus Fritzsch --- src/redraw_fixer.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/redraw_fixer.cpp b/src/redraw_fixer.cpp index b945ac5..94964af 100644 --- a/src/redraw_fixer.cpp +++ b/src/redraw_fixer.cpp @@ -39,9 +39,9 @@ struct App { void try_fix(uint32_t surface_id); }; -void controller_hooks::surface_created(uint32_t surface_id) {} +void controller_hooks::surface_created(uint32_t /*surface_id*/) {} -void controller_hooks::surface_removed(uint32_t surface_id) {} +void controller_hooks::surface_removed(uint32_t /*surface_id*/) {} void controller_hooks::surface_visibility(uint32_t surface_id, uint32_t v) { this->app->surface_visibility(surface_id, v); @@ -78,9 +78,10 @@ App::App() : chooks{this}, display{new wl::display}, controller{}, outputs{} { this->outputs.back()->proxy.get()))); }); - for (int i : {1, 2, 3}) + for (int i : {1, 2, 3}) { this->display->roundtrip(); } +} void App::commit() { this->controller->commit_changes(); @@ -114,13 +115,14 @@ void App::try_fix(uint32_t surface_id) { } // namespace wm -int main(int argc, char **argv) { +int main(int /*argc*/, char ** /*argv*/) { wm::App app; if (!app.display->ok()) { fputs("Could not init wayland display\n", stderr); return 1; } - while (app.display->dispatch() != -1) + while (app.display->dispatch() != -1) { ; + } return 0; } -- 2.16.6