diff options
-rw-r--r-- | src/redraw_fixer.cpp | 12 |
1 files 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; } |